简体   繁体   中英

NPM Cant install Packages

I tried to install some packages for my BrowserQuest Server.

I used: npm install -d

Node Version v0.10.21

NPM Version v 1.3.11

OS Debian 7.0 Wheezy

Errors:

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>

Please help me!

I had a similar problem on ubuntu 12.10, and it was SSL related. Until i had figured it out, disabling https could solve things for a moment:

npm set registry http://registry.npmjs.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM