0

I have installed Node.js and when I run the command Node -v it gave me exact version and then I ran npm -v, it replied back with the version. But when I try to install appium using the command "npm install appium" I have got

npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/appium failed, reason: getaddrinfo EAI_AGAIN my.proxyserver.com:8080

can some one tell me why this is happening ?

Al Imran
  • 876
  • 7
  • 27
vishal
  • 31
  • 9

2 Answers2

1

Connect to Direct Internet like Mobile hotspot or WiFi and try again.

npm install usually fails with corporate proxy.

Mani Vannan
  • 165
  • 1
  • 14
  • Am using my home WiFi network, but then it is failing – vishal May 26 '18 at 16:37
  • > npm config rm proxy & > npm config rm https-proxy --tried removing npm proxy ? – Mani Vannan May 27 '18 at 15:24
  • From similar questions, i can suggest: 1. Also try reinstalling nodeJs or try > npm install npm@latest 2. Clear npm proxys > npm config rm proxy > npm config rm https-proxy 3. Check your DNS. Or give a try with Google DNS – Mani Vannan May 28 '18 at 05:22
  • I tried on both (mobile hotspot and other WiFi network) but it didn't give me the expected result – vishal Aug 14 '18 at 11:14
  • This worked for me, but I had to add the -g parameter (it was not removing my proxy settings without it). I -finally- got Appium to install properly by bypassing the corporate firewall thanks to your tip, thanks! Upvoted. – Bill Hileman Aug 15 '18 at 18:45
0

According to this Microsoft page, this error translates to "A temporary failure in name resolution occurred". Therefore, I suppose you can just try again later. Or, depending on your version of Windows, try this answer. I just tried installing this npm package and it works normally on my Windows 10 box.

Bernardo SOUSA
  • 415
  • 4
  • 13
  • My network is not enabled with proxy, why is it asking to set proxy each time i run the npm install -g appium command? – vishal May 19 '18 at 13:21