SMART icon indicating copy to clipboard operation
SMART copied to clipboard

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

Open jdkuhnke opened this issue 4 years ago • 4 comments

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

jdkuhnke avatar Feb 01 '21 16:02 jdkuhnke

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

rubmz avatar Feb 10 '21 20:02 rubmz

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.

MDutro avatar Mar 02 '21 15:03 MDutro

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.

krcm0209 avatar Mar 05 '21 14:03 krcm0209

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.

jcfergus avatar Mar 07 '21 02:03 jcfergus