6

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?

Matan Gubkin
  • 3,019
  • 6
  • 25
  • 44

3 Answers3

1

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?

Community
  • 1
  • 1
jaumard
  • 8,202
  • 3
  • 40
  • 63
1

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

Matan Gubkin
  • 3,019
  • 6
  • 25
  • 44
0

Try this

npm install sails --msvs_version=2013 -g

The --msvs_version=<.net version> part should refer to the version of .NET you have installed on your windows pc.

rjmacarthy
  • 2,164
  • 1
  • 13
  • 22