NPM from behind the proxy
If you connecting from behind the proxy and run
npm info react --verbose
Error message: npm info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
Here is what helped me. Let's start with:
It should produce something like this
Server: 172.20.10.1 Address: 172.20.10.1#53 Non-authoritative answer: registry.npmjs.org canonical name = a.sni.fastly.net. a.sni.fastly.net canonical name = prod.a.sni.global.fastlylb.net. Name: prod.a.sni.global.fastlylb.net Address: 220.127.116.11
Grab the address (18.104.22.168) and add it to
I also added registry to npm config. However, this shoud be optional if you haven't modified config yourself.
Done. You should be able to use your npm again.
Published by IndieForger