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。