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
After uninstalling node-sass try cleaning your npm cache. After that try installing node-sass again.
npm cache clean && npm install node-sass
rolling back to node v10.17.0
fixed the problem to me.
You can use nvm to do so:
https://github.com/nvm-sh/nvm
> nvm install 10.17.0
> nvm use 10.17.0
> node -v
10.17.0
I needed to take the following steps to "resolve" this problem:
mkdir ~/safe_node_module
;wget -q https://github.com/sass/node-sass/releases/download/v4.13.0/linux-x64-72_binding.node
and then send to the folder created in step 1;export SASS_BINARY_PATH=/home/ronaldaraujo/safe_node_module/linux-x64-72_binding.node
;npm i
;Sometime unable to download file win32-x64-79_binding.node due to your proxy restrict to download so plase follow this below link set them manually. https://github.com/sass/node-sass/issues/2773
I also had to face the same problem with node v12.16.3
.
Remove node-sass
dependency from your package.json
if it is mentioned in your dependencies
.This will allow npm to install other required dependencies without any disruption.
Delete package-lock.json
file and node_modules
folder from your project.
Force clean the entire NPM cache by using following comand.
npm cache clean --force
Re-Install all the dependencies.
npm install
Now you can install node-sass
.
npm i node-sass