我尝试为BrowserQuest Server安装一些软件包。
我用过:npm install -d
节点版本v0.10.21
NPM Version v 1.3.11
OS Debian 7.0 Wheezy
错误:
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:698:17)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-
client/lib/get.js:142:7)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 3.2.41-042stab081.5
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-d"
npm ERR! cwd /root/BrowserQuest
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm http 304 https://registry.npmjs.org/redis
npm http 304 registry.npmjs org/connect
npm http 304 registry.npmjs org/underscore
npm http 304 registry.npmjs org/bison
npm http 304 registry.npmjs org/websocket-server
npm http 304 registry.npmjs org/sanitizer
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/BrowserQuest/npm-debug.log
npm ERR! not ok code 0>
请帮助我!
答案 0 :(得分:0)
我在ubuntu 12.10上遇到了类似的问题,它与SSL有关。直到我弄清楚了,禁用https可以暂时解决问题:
npm set registry http://registry.npmjs.org/