执行npm install安装的时候报错
报错如下:
npm ERR! network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
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! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "supervisor"
npm ERR! cwd C:\Users\A4080924\WebstormProjects\blog2\microblog
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ECONNRESET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\A4080924\WebstormProjects\blog2\microblog\npm-debug.log
npm ERR! not ok code 0
6 回复
connect reset
@jysperm 大神,能说清楚点呢
一直使用npm install都会碰到这个问题,求各位大神给条活路啊,根本学习不下去了
哥们,这个问题解决了吗?我也一直有这个问题
@WebHunters @Dior222 试试cnpm呗,npm install -g cnpm
,然后再cnpm install xxx
@luoyjx 谢谢!在同学的推荐下我也使用了cnpm