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. (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


你可能感兴趣的:(npm ERR! network tunneling socket could not be established, cause=connect ECONNR)