Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose build throws Error in Windows 10 and Docker with WSL2 backend because of incompatible node #74

Open
jdkuhnke opened this issue Feb 1, 2021 · 4 comments

Comments

@jdkuhnke
Copy link

jdkuhnke commented Feb 1, 2021

Following the installation instruction I get the error below when building the smart_frontend.
My DockerEngine is v20.10.2 using the WSL2 backend in Windows 10.

Error message occuring in Step 7/7 : RUN yarn add --force node-sass:

error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 8". Got "6.17.1"
error Found incompatible module

image

@rubmz
Copy link

rubmz commented Feb 10, 2021

not only in windows ... also in ubuntu 20...

@MDutro
Copy link

MDutro commented Mar 2, 2021

I have also run into the same issue on Windows 10. I would provide a screenshot but my terminal looks identical to the one in the first post in this issue.

@krcm0209
Copy link

krcm0209 commented Mar 5, 2021

I get the same exact error in WSL 2.

I also attempted this outside of WSL in Windows PowerShell using docker and docker-compose too, and got the same error.

@jcfergus
Copy link

jcfergus commented Mar 7, 2021

For what it's worth I managed to get this up and running in a more current environment with the following changes:

In frontend/Dockerfile, change the first line to:

FROM node:12

and in frontend/package.json, change the node-sass version to 4.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants