簡體   English   中英

Npm在node-gyp重建上安裝失敗

[英]Npm Install Failing on node-gyp rebuild

看來這是一個非常普遍的問題,但是我研究過的解決方案都沒有為我解決。

我正在運行Ubuntu 16.04,Node 4.2.6,NPM版本3.5.2。 我懷疑我的應用程序中存在一個依賴項,無法再與這些版本一起使用,但是我不確定如何快速識別它。

在我的應用程序上運行npm install時,得到以下信息:

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:bufferutil@1.1.0 bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.1.0 Exit

我試過重新安裝node和npm。

我能夠通過使用識別不兼容的依賴關系

npm list

從應用程序的目錄中。 這表明我使用不兼容的bufferutil版本具有未滿足的依賴性。

當我將依賴關系更新到最新版本時,npm install正常運行。 希望這對某人有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM