node-sass: Failed at the node-sass@3.6.0 postinstall script 'node scripts/build.js' Exit status 1
Hello, i have a problem when i try to do this:
npm install -g node-sass@3.6.0
My computer has this configuration:
OS: Windows 7 64 bits node v4.2.1 npm v3.9.5
The error is:
npm ERR! Windows_NT 6.1.7601 npm ERR! argv “C:\Program Files (x86)\nodejs\node.exe” “C:\Users\Myuser\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “install” “node-sass@3.6.0” “-g” npm ERR! node v4.2.1 npm ERR! npm v3.9.5 npm ERR! code ELIFECYCLE
npm ERR! node-sass@3.6.0 postinstall:
node scripts/build.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.6.0 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. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-sass npm ERR! Or if that isn’t available, 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! C:\Users\JRCI\npm-debug.log npm ERR! code 1
I also try to install the node-sass 3.6.0 and 3.4.2 versions but i have the same problem.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 37 (11 by maintainers)
sudo ln -s /usr/bin/nodejs /usr/bin/node
this helped for meStill waiting on a Solution for this installation error of node-sass@3.8.0 postinstall
These look like permission issues. Make sure you have permission execute in your install directory. You can confirm a permission issue with
npm install --unsafe-perm
On 3 Jul 2016 1:37 AM, “Alexius Lee” notifications@github.com wrote:I was having this issue in an alpine docker image. I eventually found that I needed g++ available so that node-sass could run the build script. (I already had nodejs, python & make)
@Pizdetss what a nickname, man
I’m having the same problem with 3.8: npm ERR! node v4.4.2 npm ERR! npm v2.15.0 npm ERR! code ELIFECYCLE
npm ERR! node-sass@3.8.0 postinstall:
node scripts/build.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.8.0 postinstall script ‘node scripts/build.js’.Yes, node is on my path.
@dongalor your ancient node-sass@0.9.6 will not work with the recent node engines. Please update node-sass to the latest version.
Sometimes works and sometimes doesn’t (IN HEROKU)
package.json “scripts”: { “preinstall”: “npm rebuild node-sass && npm i typings@2.1.0 -g && npm install -g typescript@2.2.2 && typings install && tsc -p tsconfig.json”, “postinstall”: “ng build”, }
I have tried using node 10.4.1 but it also doesn’t work, same error caused. Need professional help
upgrade to the latest Node.js (v10+) and this should resolve the issue
It help me. 👍