[英]annoying issue with nodeJS while running “npm install”?
what's the reason about this issue while running "npm install" ? 运行“ npm install”时此问题的原因是什么?
after running npm install
- I'm getting tons of errors 运行
npm install
-我收到很多错误
npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! network getaddrinfo ENOTFOUND ex-proxy.com ex-proxy.com: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! C:\Users\mo7sn\Desktop\Angular2-GettingStarted-master\APM - Start\npm-debug.log
my OS is windows 10 我的操作系统是Windows 10
use 采用
c:>npm cache clean c:> npm缓存清理
c:>npm delete proxy c:> npm删除代理
and try again 然后再试一次
The screenshot is not the same as what you wrote in your question. 屏幕截图与您在问题中所写的内容不同。
In the question you quote: 在问题中您引用:
npm ERR! network getaddrinfo ENOTFOUND ex-proxy.com ex-proxy.com:8080
What's vsible in the screenshot is: 屏幕截图中的可变项是:
npm ERR! network getaddrinfo ENOTFOUND registry.npms.org registry.npms.org:80
It should be registry.npmjs.org and not registry.npms.org. 它应该是registry.npmjs.org,而不是registry.npms.org。
Compare: 相比:
If you're using a proxy then you should configure it properly. 如果使用代理,则应正确配置。 If you can access https://registry.npmjs.org/ from your computer directly and you can
ping registry.npmjs.org
then you should not need a proxy. 如果您可以直接从计算机访问https://registry.npmjs.org/并且可以
ping registry.npmjs.org
则您不需要代理。
I managed to solve it 我设法解决了
this problem happened because 发生这个问题是因为
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.