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

When I run: npm install -g sails

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

I tried:

 npm install -g node-gyp npm update npm install 

nothing works. I used to have sails and worked on my machine until I deleted it. Now that I want to use it again, it refuses to install the package. Any suggestions?

+6
source share
3 answers

You may need to upgrade npm, try the following:

 npm install -g npm npm install -g sails 

Check out this post to help. How can I upgrade Node.js and npm to future versions?

+1
source

I eventually resolved this by rebooting my windows machine and opening the nodejs command prompt as administrator and setting sails.

+1
source

try it

 npm install sails --msvs_version=2013 -g 

The --msvs_version=<.net version> should refer to the .NET version installed on your Windows computer.

0
source

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


All Articles