gpt4 book ai didi

node.js - CentOS 6 安装node-memwatch,node-gyp rebuild 报错

转载 作者:搜寻专家 更新时间:2023-11-01 00:06:18 26 4
gpt4 key购买 nike

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

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

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"

"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

关于node.js - CentOS 6 安装node-memwatch,node-gyp rebuild 报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37432122/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com