CNode

执行npm install安装的时候报错

问答
WWebHunters发布于11 年前最后回复11 年前6 回复33630 浏览0 收藏

报错如下:

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)

J
jysperm#1·11 年前

connect reset

W
WebHunters#2·11 年前
引用 jyspermconnect reset

@jysperm 大神,能说清楚点呢

W
WebHunters#3·11 年前

一直使用npm install都会碰到这个问题,求各位大神给条活路啊,根本学习不下去了

D
Dior222#4·11 年前

哥们,这个问题解决了吗?我也一直有这个问题

L
luoyjx#5·11 年前

@WebHunters @Dior222 试试cnpm呗,npm install -g cnpm,然后再cnpm install xxx

D
Dior222#6·11 年前
引用 luoyjx@WebHunters @Dior222 试试cnpm呗,npm install g cnpm,然后再cnpm install xxx

@luoyjx 谢谢!在同学的推荐下我也使用了cnpm

参与回复
登录后即可参与回复。登录