Nodejs 安装express

daniel_ 发布于 2012/07/02 12:05
阅读 5K+
收藏 0

请大家赐教:

在安装nodejs的express时报错

node -v = v0.8.1

npm -v = v1.1.33

在使用npm install express -gd安装时报错请问有没有其他安装办法,错误如下:

npm info it worked if it ends with ok
npm info using npm@1.1.33
npm info using node@v0.8.1
npm info retry registry request attempt 1 at 11:55:56
npm http GET http://registry.npmjs.vitecho.com/express
npm info retry will retry, error on last attempt: Error: connect ETIMEDOUT
npm info retry registry request attempt 2 at 11:56:27
npm http GET http://registry.npmjs.vitecho.com/express
npm info retry will retry, error on last attempt: Error: connect ETIMEDOUT
npm info retry registry request attempt 3 at 11:57:49
npm http GET http://registry.npmjs.vitecho.com/express
npm ERR! Error: connect ETIMEDOUT
npm ERR!     at errnoException (net.js:781:11)
npm ERR!     at Object.afterConnect [as oncomplete] (net.js:772:19)
npm ERR!  { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', sy
scall: 'connect' }
npm ERR! 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 Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "-gd"
npm ERR! cwd E:\
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! message connect ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! ETIMEDOUT errno
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     E:\npm-debug.log
npm ERR! not ok code 0

 

加载中
0
情天大圣
情天大圣
貌似是连接不到 http://registry.npmjs.vitecho.com/express,网络问题吧?
0
凌空洞长老
凌空洞长老
很明白啊,网络连接异常,检查一下自己是不是被墙了....
返回顶部
顶部