user911
user911

Reputation: 1559

[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

Upvotes: 7

Views: 6460

Answers (3)

Kanish Mathew
Kanish Mathew

Reputation: 905

sudo npm install --save-dev  --unsafe-perm node-sass

Upvotes: 1

saber tabatabaee yazdi
saber tabatabaee yazdi

Reputation: 4959

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

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

Upvotes: 1

John Yan
John Yan

Reputation: 11

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

Upvotes: 1

Related Questions