npm ERR! network tunneling socket could not be established, cause=connect ECONNR

問題:

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章