Reputation: 1
I have tried to run commands like npm config delete http-proxy
and I also deleted my .npmrc, but it didn't work. The following are some of the errors I encountered:
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://registry.npmjs.org/express failed, reason: connect ETIMEDOUT 2606:4700:90c3:80e2:e464:3f2:6810:22:80
npm ERR! network This is a problem 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'
Upvotes: -2
Views: 76
Reputation: 11
Are you on a VPN (work) & behind a firewall?
If that is the case then you'll need to set your work proxy in the .npmrc file as mentioned below, otherwise, if you are in your home network and you don't have a VPN, and empty .npmrc file should be fine.
proxy=http://WorkProxy.domain.com:80
https-proxy=http://WorkProxy.domain.com:80
strict-ssl=false
Note: In the case of a firewall, you might also need to work with your IT security to make it work.
Upvotes: 1