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?

Krishna
  • 1,332
  • 5
  • 20
  • 35

2 Answers2

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

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

g2jose
  • 1,367
  • 1
  • 9
  • 11