在 CentOS 6 上安装 node-memwatch,node-gyp 重建错误 [英] Installing node-memwatch on CentOS 6, node-gyp rebuild error

查看:239
本文介绍了在 CentOS 6 上安装 node-memwatch,node-gyp 重建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用npm install memwatch"安装 memwatch 时,出现此错误:

When trying to install memwatch using "npm install memwatch", I get this error:

我在服务器上安装了带有 python 2.6.6 的 CentOS6.

I have CentOS6 with python 2.6.6 installed on server.

memwatch@0.2.2 安装/home/[[用户名]]/public_html/sockets/node_modules/memwatch节点gyp重建

memwatch@0.2.2 install /home/[[username]]/public_html/sockets/node_modules/memwatch node-gyp rebuild

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: connect ETIMEDOUT
gyp ERR! stack at errnoException (net.js:905:11)
gyp ERR! stack at Object.afterConnect as oncomplete
gyp ERR! System Linux 2.6.32-504.3.3.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"

重建"吉普错误!cwd/home/[[用户名]]/public_html/sockets/node_modules/memwatch吉普错误!节点 -v v0.10.36吉普错误!节点-gyp -v v1.0.1吉普错误!不行

"rebuild" gyp ERR! cwd /home/[[username]]/public_html/sockets/node_modules/memwatch gyp ERR! node -v v0.10.36 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok

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.
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! System Linux 2.6.32-504.3.3.el6.x86_64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "memwatch"
npm ERR! cwd /home/[[username]]/public_html/sockets
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

推荐答案

尝试

npm install memwatch-next

我认为旧的代码库没有更新到最新的 NPM/NodeJS

I think the old codebase is not updated to latest NPM/NodeJS

这篇关于在 CentOS 6 上安装 node-memwatch,node-gyp 重建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆