0
看起来像这样是一个很常见的问题,但是我所研究的解决方案都没有解决这个问题。Npm安装在node-gyp重建失败
我运行的是Ubuntu 16.04,Node 4.2.6,NPM版本3.5.2。我怀疑我的应用程序中有一个依赖项,不再适用于这些版本,但我不确定如何快速识别它。
当我运行NPM在我的应用程序的安装,我得到如下:
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-28-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/gary/Work/ui-programmatic/node_modules/bufferutil
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit
我试着重新安装节点,NPM。