繁体   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