npm install: Failed at the node-sass@3.13.1 postinstall script npm install: Failed at the node-sass@3.13.1 postinstall script angular angular

npm install: Failed at the node-sass@3.13.1 postinstall script


If you run into this issue, read this page: https://www.bramvandenbulcke.be/en/kb/failed-node-sass3131-postinstall-script

The solution in my case:

1) Delete the package-lock.json file

2) npm install gulp-sass --save-dev

3) npm install node-sass@latest

Version specific notes:

node-sass@3.13.1 runs only on versions of Node.js up to v7 as stated in the release notes:


I think this is happening because you're missing the node-sass module. Try the following and rerun your build script and see if this resolves your issue:

npm install node-sass@latest

Also, I see you're using fsevents on a Windows platform, just a warning this module is only supported for Native access to OS X FSEvents


I had error node-sass@3.13.1 postinstall: node scripts/build.js on npm install after this message

> node scripts/install.jsDownloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-72_binding.nodeCannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-72_binding.node": HTTP error 404 Not FoundHint: If github.com is not accessible in your location      try setting a proxy via HTTP_PROXY, e.g.       export HTTP_PROXY=http://example.com:1234or configure npm proxy via      npm config set proxy http://example.com:8080> core-js@2.6.9 postinstall /var/www/my/armat/www/node_modules/core-js> node scripts/postinstall || echo "ignore"

and spent hours to find solution. I was trying to install it on laravel 5.2 that uses older versions of node and npm this helped me

$ npm install -g n$ n 6.10.2    // selecting version you need in my case 6.10.2$ npm install -g npm@3.10.10 // same for npm

hope this will help somebody else ^_^