码迷,mamicode.com
首页 > Web开发 > 详细

nodejs install报错

时间:2019-01-28 14:09:54      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:handler   RoCE   cnpm   config   eve   cti   fuse   setting   win   

初学nodejs安装cnpm一直报错

npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8080

npm ERR! network This is most likely not a problem with npm itself

npm ERR! network and is related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network settings.

npm ERR! network 

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network ‘proxy‘ config is set properly.  See: ‘npm help config‘

 

npm ERR! Please include the following file with any support request:

npm ERR!     /Users/jikuandai/Desktop/demo/npm-debug.log

 

    at ChildProcess.exithandler (child_process.js:206:12)

    at emitTwo (events.js:106:13)

    at ChildProcess.emit (events.js:191:7)

    at maybeClose (internal/child_process.js:852:16)

    at Socket.<anonymous> (internal/child_process.js:323:11)

    at emitOne (events.js:96:13)

    at Socket.emit (events.js:188:7)

    at Pipe._handle.close [as _onclose] (net.js:492:12)

解决方案:

npm config rm proxy

npm config rm https-proxy

nodejs install报错

标签:handler   RoCE   cnpm   config   eve   cti   fuse   setting   win   

原文地址:https://www.cnblogs.com/Silence-wd/p/10329376.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!