(node-gyp rebuild 2> builderror.log)|| (退出0) - 节点安装错误

Mat*_*kin 6 node.js npm sails.js

当我跑: npm install -g sails

我收到此错误/警告: (node-gyp rebuild 2> builderror.log) || (exit 0)

我试过了:

npm install -g node-gyp
npm update
npm install
Run Code Online (Sandbox Code Playgroud)

似乎没什么用.我曾经在我的机器上运行并运行,直到我卸载它.现在我想再次使用它,它拒绝安装包.有什么建议?

jau*_*ard 1

也许 npm 需要更新,试试这个:

npm install -g npm
npm install -g sails
Run Code Online (Sandbox Code Playgroud)

看看这篇文章它可能会有所帮助How can I update Node.js and npm to the next versions?