Skip to content

npm ERR! code EAI_AGAIN error when trying to install express

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 failed, reason: getaddrinfo EAI_AGAIN
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersUserAppDataRoamingnpm-cache_logs2020-07-21T08_32_35_6

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 found the fix myself and what I basically did was use a different internet connection and I was able to install express! Hopefully someone else finds this useful!