npm ERR! Error: failed to fetch from registry: express

리눅스/APACHE|2015. 1. 16. 16:56
반응형

root@ubuntu:/home/sysdocu/node_root# npm install -g express
npm http GET https://registry.npmjs.org/express
npm http 408 https://registry.npmjs.org/express
npm ERR! registry error parsing json

npm ERR! Error: failed to fetch from registry: express
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:153:14)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:525:16)
npm ERR!     at Request.emit (events.js:67:17)
npm ERR!     at IncomingMessage.<anonymous> (/usr/lib/nodejs/request/main.js:484:14)
npm ERR!     at IncomingMessage.emit (events.js:88:20)
npm ERR!     at HTTPParser.onMessageComplete (http.js:137:23)
npm ERR!     at CleartextStream.ondata (http.js:1150:24)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/sysdocu/node_root/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-29-generic-pae
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "express"
npm ERR! cwd /home/sysdocu/node_root
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: express
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/sysdocu/node_root/npm-debug.log
npm not ok
root@ubuntu:/home/sysdocu/node_root#
 

위와 같은 에러 메세지 출력시 아래 명령 이후 다시 설치시도를 해봅니다.

 

root@ubuntu:/home/sysdocu/node_rootnpm config set registry http://registry.npmjs.org/

반응형

댓글()