【已解决】安装 node-inspector 时报告网络错误
发布于 1年前 作者 huoshaolin 1327 次浏览

在 Windows 8.1 64bit 下用 npm install -g node-inspector 命令在CMD下安装 node-inspector 时出错,貌似是代理方面的问题,请问应该如何解决?

D:\sec4>npm install -g node-inspector npm http GET https://registry.npmjs.org/node-inspector npm http GET https://registry.npmjs.org/node-inspector npm http GET https://registry.npmjs.org/node-inspector npm ERR! network 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 settin gs. 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.2.9200 npm ERR! command “C:\Program Files\nodejs\\node.exe” “C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js” “install” "-g" “node-inspector” npm ERR! cwd D:\sec4 npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! syscall getaddrinfo npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR!

2 回复

用cnpm

npm install --registry=http://r.cnpmjs.org -g cnpm
cnpm install -g node-inspector

问题已解决,非常感谢:-)

回到顶部