Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(node-gyp rebuild 2> builderror.log) || (exit 0) - node installing error

When I run: npm install -g sails

I get this error/warning: (node-gyp rebuild 2> builderror.log) || (exit 0)

I have tried:

npm install -g node-gyp
npm update
npm install

nothing seems to work. I used to have sails up and running on my machine untill I uninstalled it. Now that I want to use it again it refuses to install the package. Any suggestions?

like image 582
Matan Gubkin Avatar asked Mar 29 '15 21:03

Matan Gubkin


2 Answers

Maybe npm need to be updated, try this :

npm install -g npm
npm install -g sails

Look this post it may help How can I update Node.js and npm to the next versions?

like image 181
jaumard Avatar answered Nov 15 '22 13:11

jaumard


eventually I solved this by rebooting my windows machine and open the nodejs command prompt as an admin and installing sails.

like image 21
Matan Gubkin Avatar answered Nov 15 '22 12:11

Matan Gubkin