npm install: Failed at the [email protected] 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:
[email protected]
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 [email protected] postinstall: node scripts/build.js
on npm install after this message
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> [email protected] 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 [email protected] // same for npm
hope this will help somebody else ^_^