NPM cannot install packages EHOSTUNREACH

Viewed 482
ubuntu@ubuntu:~$ npm install -g yarn
npm ERR! code EHOSTUNREACH
npm ERR! errno EHOSTUNREACH
npm ERR! request to http://registry.npmjs.ord/yarn failed, reason: connect EHOSTUNREACH 104.16.22.35:80

I have gone through every other link about this error and I have 3 factors that are different to all of them and they are important because they were the solution to everyone else's problems. Links I have read and have not solved the issue:

Still I'm struggling.

  • Internet is stable and works
  • I can ping registry.npmjs.org and other sites
  • registry.npmjs.org isn't pointing to a local address

I have tried clearing proxy settings, I don't have proxy settings to try but is the only thing that it could be but I don't understand what to put there if needed (but considering the guides on how to clear it, they aren't required). I have no idea what to try as all of the solutions to every other instance does not apply to me.

Ubuntu 20.04.3 for Raspberry Pi

0 Answers
Related