在CentOS 6上安装node-memwatch,node-gyp rebuild错误

时间:2015-03-15 08:33:18

标签: node.js npm node-gyp node-memwatch

当尝试使用" npm install memwatch"安装memwatch时,我收到此错误:

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

  

memwatch@0.2.2安装   /家庭/ [用户名] /的public_html /插座/ 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"
     

"重建"       gyp ERR! cwd / home / [[用户名]] / public_html / sockets / node_modules / memwatch       gyp ERR! node -v v0.10.36       gyp ERR! node-gyp -v v1.0.1       gyp ERR!不行

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

1 个答案:

答案 0 :(得分:0)

尝试

row.appendChild(str);

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