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:

Is node-sass a dev or a production dependency on React projects?

Since it’s required to do a production build, it should be in the production dependencies list imho. In my experience, most of the time the project gets build afresh for production, so needs all the packages required to build from scratch. A dev dependency might something like webpack-dev-server which isn’t needed for a prod build, … Read more