尝试安装Node Express时出错

时间:2013-06-03 11:42:51

标签: node.js proxy

我正在尝试通过运行npm install express -g来安装node express,但是我在控制台窗口中收到此错误。我已经设置了

  

HTTP_PROXY - http://:@ my-proxy:8080

和...

  

no_proxy - localhost,127.0.0.1

错误

C:\>npm install express -g
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm ERR! Error: getaddrinfo ENOTFOUND
npm ERR!     at errnoException (dns.js:37:11)
npm ERR!     at Object.onanswer [as oncomplete] (dns.js:124:16)
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 Windows_NT 5.1.2600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "-g"
npm ERR! cwd C:\
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.11
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\npm-debug.log
npm ERR! not ok code 0

0 个答案:

没有答案