Failed to install node-sass@0.9.6 install script 'node build.js'

I get this error when running npm installin a project. More information on this issue below.

npm ERR! node-sass@0.9.6 install: `node build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@0.9.6 install script 'node build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/capricornus/Projects/aware-app/npm-debug.log
+4
source share
4 answers

It looks like this version is no longer compatible. I get the same errors on my system. Either you need to downgrade the node version to a supported version, or update the dependencies you require node-sass@0.9.6.

The latest version of node-sass is 3.4.2.

+2
source

Just install an obsolete version of Nodejs with nodebrew.

curl -L git.io/nodebrew | perl - setup

Add the following to ~ / .bashrc

export PATH=$HOME/.nodebrew/current/bin:$PATH

Update console

source ~/.bashrc

nodebrew install-binary v0.12.7
nodebrew use v0.12.7

!

node -sass@0.9.6 install script 'node build.js'

+2

, - nodebrew, nvm (node ), node. Github

OSX El Capitan :

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
. ~/.nvm/nvm.sh

, github.

Yosuke Sato, v0.12.7 node -sass@0.9.6,

nvm install v0.12.7 or nvm use v0.12.7 (if you have it installed already)

node, /.

0

nvm use v0.12.7in the project directory, which follows npm install, solved the problem for me - an error occurred when I tried to set up broccoli-tacos, a static site generator. Thanks for the tip, I'm glad I ruined you.

0
source

Source: https://habr.com/ru/post/1622083/


All Articles