Reputation: 1362
i was trying to do an npm install command, But ended up with an error related node sass.
I learning react/redux from the "https://github.com/buckyroberts/React-Redux-Boilerplate" from this. and doing npm install fails.
The error is attached as image. I am using windows 7, with node 6.9. any idea to solve this error?
Upvotes: 1
Views: 4263
Reputation: 1
the version 8.0.0 is the good for node js 18
node-v18.18.0 ====> "node-sass": "^8.0.0",
Upvotes: 0
Reputation: 21
Step-1: open command prompt with administrator priviledges.
Step-2: type in the following command:
npm install --global --production windows-build-tools
This will install all the dependencies required.
Step-4: Now run the following command:
npm install node-sass
And you are good to go !
If you still face problems. Please refer to this page: https://github.com/nodejs/node-gyp#on-windows
Upvotes: 2
Reputation: 1465
This is likely a package that depends on native build tools. Do you have Visual Studio installed? If not, try installing it first and reboot before retrying npm install.
Your issue may be related to https://github.com/sass/node-sass/issues/1379
Upvotes: 1