安装任何NPM模块时出现NPM错误



大家好,我想安装一个npm模块http://socket.io/..事实上,在安装任何NPM模块时,我得到了相同的错误。

C:wampwwwnodetutorial>npm install socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/socket.io
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:\wamp\www\nodetutorial\\node.exe" "C:\wamp\www\nodet
utorial\node_modules\npm\bin\npm-cli.js" "install" "socket.io"
npm ERR! cwd C:wampwwwnodetutorial
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
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:wampwwwnodetutorialnpm-debug.log
npm ERR! not ok code 0

Thanks in advance.

问题是我的网络连接防火墙。由于安全策略命令C:wampwwwnodetutorial>npm install socket.io当它尝试

时没有得到任何响应
npm http GET https://registry.npmjs.org/socket.io

当我在没有任何防火墙的情况下在家里尝试同样的命令时,它工作正常,我没有错误

相关内容

  • 没有找到相关文章

最新更新