npm安装错误连接ECONNREFUSED 127.0.0.1:8080
我刚开始工作,我的第一个节点的JS应用程序,而试图通过npm安装快递,我得到以下错误:
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:
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 ]
如果遇到这样的问题,任何人都可以帮助我解决这个问题,我就不会find麻烦。 TNX
问题解决了
错误是由我的一个尝试可能是错误的代理configuration。 什么帮助我是: npm安装不工作
我做了以下几点:
- npm config set proxy null npm config set https-proxy null
- npm config set registry http://registry.npmjs.org/
感谢大家试图帮助
- 从Firebase Function / Express / Node.js获取原始POST数据
- VS Code intellisense /自动完成与meanjs
- 不能张贴(评论一个post)| 蒙哥与mongoose
- 在应用程序中使用中间件expressjsredirect
- 在express中使用dotjs
- 如何使用gulp来设置ExpressJS来自动重新加载(gulp-live-server)
- 如何使用react-router 2来设置服务器端渲染
- Express错误 – TypeError:express.Router不是一个函数
- 我试图通过setInterval()重新渲染我的帕格模板。 这可能吗?