Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

npm ERR! node-sass@3.8.0 install: node scripts/install.js #1601

Closed
imrealashu opened this issue Jun 21, 2016 · 24 comments
Closed

npm ERR! node-sass@3.8.0 install: node scripts/install.js #1601

imrealashu opened this issue Jun 21, 2016 · 24 comments

Comments

@imrealashu
Copy link

npm ERR! node-sass@3.8.0 install: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.8.0 install script 'node scripts/install.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/install.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/vagrant/Code/curiosity/npm-debug.log

@xzyfer
Copy link
Contributor

xzyfer commented Jun 21, 2016

Please read the contributing documentation on how to correctly file an
installation bug. Noone has supplied the information required for us to
help.

The first step is to delete your node_modules and run npm install.
On 22 Jun 2016 4:33 AM, "jamesob" notifications@github.com wrote:

+1


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1601 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAjZWCZgVfGZGPV3_JtxUE2ueecvayazks5qOC5cgaJpZM4I6af7
.

@adamszymanowski
Copy link

I have the same error, here's the log:
npm-debug.txt

@kimmings
Copy link

Hello, We're experiencing the same issue now also.
debug files attached.

npm.txt
npm-debug.txt

@imrealashu
Copy link
Author

I've tried installing with flag --unsafe-perm and it worked.

sudo npm install --unsafe-perm node-sass

@kimmings
Copy link

That didn't work for us... and running npm as sudo is not recommended.
Is anyone even looking into this bug?

@pastorryanhayden
Copy link

I'm getting the same error.
npm-debug.txt

@nschonni
Copy link
Contributor

@kimmings you appear to have a problem with your npm setup. Looks like http://stackoverflow.com/a/31193300/455535 given the first line in the file

@omahm
Copy link

omahm commented Jun 28, 2016

I had this error on Ubuntu 16.04 due to an install issue with nodejs and the wrong path setting
To fix it I created the following symlink: ln -s /usr/bin/nodejs /usr/bin/node
Now it works.

@pastorryanhayden
Copy link

@omahm Your solution worked like a charm for me. Thanks.

@kimmings
Copy link

@nschonni thanks for the tip, however my Path only has C:\Program Files\nodejs in it.
node and npm work fine... it will run and install other packages, just won't install node-sass.

@nschonni
Copy link
Contributor

@kimmings thanks for testing that. All the logs contain Failed to exec install script which means you aren't even hitting our install scripts. If you search other native binary repos (SqlLite, PhantomJs, etc..) this issue always gets bounce back to NPM because it indicates a problem with either the NPM or Node install on the machine. We can't really troubleshoot this since you aren't even executing our code when it bails out.

@kimmings
Copy link

@nschonni many thanks

@nickjohngray
Copy link

nickjohngray commented Jul 1, 2016

npm install --unsafe-perm node-sass Worked for me, thanks imrealashu!
-s /usr/bin/nodejs /usr/bin/node link already existed and is needed, thanks omahm!

My setup is:
all programs are running as root sudo -l
Ubuntu 16.04 ( with all updates on and gnome desktop updated on 1/07/20016 )
Node: 4.1.2
npm: 3.10.2

Worked for me like this:

  1. delete node_modules directory
  2. npm cache clean
  3. -s /usr/bin/nodejs /usr/bin/node
  4. npm i--unsafe-perm node-sass

NOTE 1:
I noticed node-sass installed successfully before I updated it on 1/07/20016

NOTE 2:
This error occurs when using Virtualbox shared folder with windows 7.
npm i--unsafe-perm node-sass fixes it

@jimabramson
Copy link

ln -s /usr/bin/nodejs /usr/bin/node
fixed this for me (ubuntu:16.04)

@nschonni nschonni changed the title nam ERR! node-sass@3.8.0 install: node scripts/install.js npm ERR! node-sass@3.8.0 install: node scripts/install.js Jul 10, 2016
@fmagrosoto
Copy link

@omahm Thanks... that symlink works on me!!!

@Andrew-Dyachenko
Copy link

Symlink WORKS!

@mohsenyz
Copy link

Symlink works for me too, Thanks alot

@WolfAtNight
Copy link

can someone help me? i get these error messages
npm WARN enoent ENOENT: no such file or directory, open '/home/anton/package.json'
npm WARN anton No description
npm WARN anton No repository field.
npm WARN anton No README data
npm WARN anton No license field.

i am using ubuntu budgie if that changes some things up
i already tried every help given in this forum

@WolfAtNight
Copy link

nevermind guys i just realized my stupid foult....

@DonMacorli
Copy link

@WolfAtNight what was your solution? I got the same errors messages that you got after trying to install it.

andreaskweber added a commit to sowlmateHQ/metalsmith-boilerplate that referenced this issue Jun 23, 2017
@ahmedofali
Copy link

1- symlink: ln -s /usr/bin/nodejs /usr/bin/node
Will work just run this command and
2- then run "npm install gulp-sass " and it will work.

@dwd
Copy link

dwd commented Sep 6, 2017

You can also, on Ubuntu/Debian, do:

sudo apt-get install nodejs-legacy

And then all this stuff will work fine.

@fabriceyopa
Copy link

Hi
npm cache clean --force
Work for me

@jskrnbindra
Copy link

Had the same problem, turned out I had kept my project at ~/ in sudo.
Moving it to a non-sudo user worked for me.

I can't say why root// couldn't install node-sass but // worked as expected.

@sass sass locked and limited conversation to collaborators Oct 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests