npm 错误!错误:连接 ECONNREFUSED [英] npm ERR! Error: connect ECONNREFUSED
本文介绍了npm 错误!错误:连接 ECONNREFUSED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用以下命令更新 npm(节点包管理器):npm install npm@latest -g 但我',在命令提示符中收到以下错误:
I'm trying to update the npm (node package manager) using the command: npm install npm@latest -g but I', getting the following error in the command prompt:
有人知道这到底是什么意思吗?
does someone know what this really means?
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install" "npm@latest" "-g"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect
npm ERR! Error: connect ECONNREFUSED xxx.xxx.xx.xxx:xxx
npm ERR! at Object.exports._errnoException (util.js:1022:11)
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
任何帮助将不胜感激.
谢谢尼克JS
推荐答案
如果你在代理后面,请确保 npm ERR!代理"配置设置正确.请参阅:'npm 帮助配置'
If you are behind a proxy, please make sure that the npm ERR! 'proxy' config is set properly. See: 'npm help config'
见:
更多信息:
这篇关于npm 错误!错误:连接 ECONNREFUSED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文