a blog for those who code

Wednesday 10 June 2015

NodeJS Error - errno EAI_AGAIN

In this post we are going to discuss about errno EAI_AGAIN. You can get this error when trying to install the latest version of npm or trying to install any module.

EAI_AGAIN actually means a temporary failure in name resolution or simply the name server returned a temporary failure indication. It will ask you to try again later. The error will look like :

-------------------------------------
npm ERR! Error: getaddrinfo EAI_AGAIN
-------------------------------------
npm ERR! code EAI_AGAIN
npm ERR! Errorno EAI_AGAIN
-------------------------------------

Accoding to MSDN, getaddrinfo function provides protocol-independent translation from an ANSI host name ti an address. When it is sucess it return zero. Failure retuns a nonzero Windows Sockets error code. The error code are as follows :

PC : https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx

EAI_AGAIN is actually a DNS lookup timed out error means it is either a network connectivity error or some proxy related error. Try resolving your proxy settings and check you have a decent internet connection or not. It will resolve your problem, if not try upgrading npm to the latest version ( using npm install npm@latest ), as there might be scenario that you are using older version of npm. For More information check Upgrading npm on Windows.

Please Like and Share the Blog, if you find it interesting and helpful.

No comments:

Post a Comment