SMART
SMART copied to clipboard
`docker-compose build` throws Error in Windows 10 and Docker with WSL2 backend because of incompatible node
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
not only in windows ... also in ubuntu 20...
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.
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.
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.