npm安装错误连接ECONNREFUSED 127.0.0.1:8080 [英] npm installation error connect ECONNREFUSED 127.0.0.1:8080
本文介绍了npm安装错误连接ECONNREFUSED 127.0.0.1:8080的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚开始在我的第一个节点JS应用程序上工作,尝试通过npm安装express时,出现以下错误:
ive just started working on my first node JS app, while trying to install express through npm, i was getting te following error :
Error: connect ECONNREFUSED 127.0.0.1:8080
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)
{ [Error: connect ECONNREFUSED 127.0.0.1:8080]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8080 }
以及在npm-debug上:
and at npm-debug :
36 verbose stack Error: connect ECONNREFUSED 127.0.0.1:8080
36 verbose stack at Object.exports._errnoException (util.js:870:11)
36 verbose stack at exports._exceptionWithHostPort (util.js:893:20)
36 verbose stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)
37 verbose cwd C:\APS\NodeJS
38 error Windows_NT 6.1.7601
39 error argv "C:\\APS\\NodeJS\\node.exe" "C:\\APS\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
40 error node v4.4.0
41 error npm v2.14.20
42 error code ECONNREFUSED
43 error errno ECONNREFUSED
44 error syscall connect
45 error Error: connect ECONNREFUSED 127.0.0.1:8080
45 error at Object.exports._errnoException (util.js:870:11)
45 error at exports._exceptionWithHostPort (util.js:893:20)
45 error at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)
45 error { [Error: connect ECONNREFUSED 127.0.0.1:8080]
45 error code: 'ECONNREFUSED',
45 error errno: 'ECONNREFUSED',
45 error syscall: 'connect',
45 error address: '127.0.0.1',
45 error port: 8080 }
46 error If you are behind a proxy, please make sure that the
46 error 'proxy' config is set properly. See: 'npm help config'
47 verbose exit [ 1, true ]
如果有人遇到此类问题可以帮助他解决问题,我会寻找达问题,但找不到任何东西. TNX
i looke for tat issue and couldnt find somthing , if anyone that faced such an issue can help ill appriciate it. TNX
推荐答案
问题已解决
该错误可能是由于我的尝试之一中的代理配置错误所致.帮助我的是: npm安装无效
The error was by wrong configuration of proxy on one of my attempts probably. What helped me was: npm install not work
我做了以下事情:
- npm配置设置代理 null npm config设置https-proxy 空
- npm配置集注册表 http://registry.npmjs.org/
- npm config set proxy null npm config set https-proxy null
- npm config set registry http://registry.npmjs.org/
感谢所有尝试提供帮助的人
Thanks for everyone trying to help
这篇关于npm安装错误连接ECONNREFUSED 127.0.0.1:8080的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文