1

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.enter image description here I am using windows 7, with node 6.9. any idea to solve this error?

3 Answers 3

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

0

the version 8.0.0 is the good for node js 18

node-v18.18.0 ====> "node-sass": "^8.0.0",

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.