nodejs安装错误

network错误:

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

 

错误2:Error: Cannot find module 'connect'

解决办法:

模块安装取消全局安装,即去除-g。sudo npm install connect -g

posted @ 2018-02-22 11:53  啄木鸟伍迪  阅读(448)  评论(0编辑  收藏  举报
//火箭 GenerateContentList();