安装任何npm模块时出错

时间:2014-01-21 14:39:28

标签: node.js npm

我正在尝试在我的系统中安装异步模块,它给出了以下错误。 这个错误来自我正在尝试安装的所有模块。请给我解决这个问题的想法。它已成为瓶颈。

C:\Windows>npm install async
npm http GET https://registry.npmjs.eu/async
npm http GET https://registry.npmjs.eu/async
npm http GET https://registry.npmjs.eu/async
npm ERR! Error: connect ECONNREFUSED
npm ERR!     at errnoException (net.js:901:11)
npm ERR!     at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR!  { [Error: connect ECONNREFUSED]
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "async"
npm ERR! cwd C:\Windows
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! syscall connect
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! stack Error: connect ECONNREFUSED
npm ERR! stack     at errnoException (net.js:901:11)
npm ERR! stack     at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Windows\npm-debug.log
npm ERR! not ok code 0

0 个答案:

没有答案