I\'m trying to do npm install
and an error appears :
Failed at the node-sass@4.5.0 postinstall script.
I tried to delete no
try
sudo rm -rf package-lock.json node_modules
sudo npm cache clean --force
sudo npm i --unsafe-perm node-sass
Solved this by force installing node-sass locally: npm install -f node-sass
I was pretty sure I knew what I was doing... this
You should try to install SASS.
I remember havign this issue in AngularJS with compass, I had to install it with Ruby to make it work. This was 3 years ago, so I'm not sure this would be the solution, but it doesn't cost anything except time to try, right ?
I'm trying to do npm install
in the ionic project and an error appears
Failed at the node-sass@4.9.0 postinstall script.
The following steps worked for me ionic project
Remove npm
than run the following commands
npm i
npm install @ionic/app-scripts@latest--unsafe-perm=true --allow-root
Node-sass@4.5.0 cannot be installed on node 8
Please update either node-sass or node version compatible
Go to https://github.com/sass/node-sass/releases to check which fits for you
I had the same issue with a new install with Keystone.js. I was able to get pass this issue by removing Node Sass from package.json and running npm install again. Being that the package wasn't listed under node modules. And it worked fine after that.