Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed at the [email protected] postinstall script. Cannot manage to run this

I have gone through all the questions regarding this issue but I cannot seem to find anything that works.

I am getting this error :-

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I have tried to remove the node_modules and npm install again. I also tried to remove the node-sass folder in the node_modules and npm install -g node-sass@latest did not work too. I also tried

npm install -g node --unsafe-perm=true --allow-root

and

npm uninstall node-sass
npm cache clean --force
npm install -g node-sass@latest

but nothing seems to be working at all. Is there someone who can shed some light on this please?

Thanks for your time

like image 599
JMon Avatar asked Aug 06 '19 13:08

JMon


1 Answers

try this command it should work successfully

sudo npm install -g --unsafe-perm node-sass

it work for me

like image 146
Alireza Ebrahimkhani Avatar answered Sep 20 '22 19:09

Alireza Ebrahimkhani