Reputation: 433
what's the reason about this issue while running "npm install" ?
after running npm install
- I'm getting tons of errors
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
Upvotes: 0
Views: 570
Reputation: 433
I managed to solve it
this problem happened because
Upvotes: 0
Reputation: 111316
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.
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.
Upvotes: 0