centos,windows下安装模块失败,node-gyp rebuild 错误。
发布于 9 年前 作者 vendetta0114 23567 次浏览 最后一次编辑是 8 年前 来自 问答

Linux: centos:3.10.0-229.el7.x86_64 Python:Python 2.7.5 gcc 版本 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) 安装模块bcrypt,memwatch等错误信息如下:

[root@localhost util-event]# npm install memwatch

memwatch@0.2.2 install /usr/git-program/util-event/node_modules/memwatch node-gyp rebuild

gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: node-v0.12.3.tar.gz local checksum 2adfc8f055f66ffb55b4e4ebc514f747395cd0a182939079260378ed7de7f307 not match remote e65d83c6f2c874e28f65c5e192ac0acd2bbb52bfcf9d77e33442d6765a3eb9da gyp ERR! stack at deref (/usr/local/node/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:299:20) gyp ERR! stack at IncomingMessage.<anonymous> (/usr/local/node/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:340:13) gyp ERR! stack at IncomingMessage.emit (events.js:129:20) gyp ERR! stack at _stream_readable.js:908:16 gyp ERR! stack at process._tickCallback (node.js:355:11) gyp ERR! System Linux 3.10.0-229.el7.x86_64 gyp ERR! command “node” “/usr/local/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” "rebuild" gyp ERR! cwd /usr/git-program/util-event/node_modules/memwatch gyp ERR! node -v v0.12.3 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok npm ERR! Linux 3.10.0-229.el7.x86_64 npm ERR! argv “/usr/local/node/bin/node” “/usr/local/node/bin/npm” “install” "memwatch" npm ERR! node v0.12.3 npm ERR! npm v2.9.1 npm ERR! code ELIFECYCLE

npm ERR! memwatch@0.2.2 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the memwatch@0.2.2 install script ‘node-gyp rebuild’. npm ERR! This is most likely a problem with the memwatch package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls memwatch npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /usr/git-program/util-event/npm-debug.log

windows win8.1系统安装模块也会有此错误信息,按照社区指南装了python2.7.3后, 对bcrypt模块安装成功,但memwatch安装时仍会有类似错误, 希望社区朋友们可以指点解决方式,感激不尽! markdown不是太熟悉,排版请见谅!

3 回复

我win10正使用最新的node v0.12.3安装一些模块的时候也报了和你类似的错误。后来换回v0.12.2的时候就正常了,你可以试试看~~

@okoala linux 环境正常难道也是node版本问题,多谢指点,换个版本试一下

@vendetta0114 试下npm install memwatch-next。

回到顶部