Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

[email protected] postinstall: `node scripts/build.js`

I am trying to build angular-cli on jenkins and getting below error. I am using node (v6.10.0) and npm( v3.10.10). I don't have any direct dependency for node-sass in my package.json so it looks like a peer dependency. I have google this error and it looks like there is some issue with node/npm version. I am using latest version of node so really not sure what's the issue here.

[email protected] postinstall: node scripts/build.js

npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the node-sass package,npm ERR! not with npm itself.

Tell the author that this fails on your system: npm ERR! node scripts/build.js

like image 897
user911 Avatar asked Mar 23 '17 21:03

user911


Video Answer


3 Answers

you can try this "npm install node-sass@2"

like image 171
John Yan Avatar answered Oct 07 '22 20:10

John Yan


by force installing node-sass locally: npm install -f node-sass

I was pretty sure I knew what I was doing... this

like image 1
saber tabatabaee yazdi Avatar answered Oct 07 '22 19:10

saber tabatabaee yazdi


sudo npm install --save-dev  --unsafe-perm node-sass
like image 1
Kanish Mathew Avatar answered Oct 07 '22 20:10

Kanish Mathew