I'm learning web development by going through a course and it was time to install express using node package manager. I had to install express and used the following command:
npm install express
and I got an error that said:
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/express failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-07-21T08_32_35_6
54Z-debug.log
I'm totally lost at the moment. Please don't judge me as I'm still extremely new to Node. Help would be really appreciated.
I had a similar issue and I just solved it with command sets that I found on the internet. I am sharing it to save your time.
npm config rm proxy
npm config rm https-proxy --tried removing npm proxy
I am sorry I can't add more detail to it, but this solved my issue of:
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/express failed, reason: getaddrinfo
EAI_AGAIN registry.npmjs.org
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With