-2

The error I'm getting:

the error

My internet connection is fine, and I have the firewall turned off, and I'm not using ipv6. I am on Ubuntu 20.04

starball
  • 20,030
  • 7
  • 43
  • 238
m_hm0ud
  • 75
  • 1
  • 9

1 Answers1

1

This error occurs when your device cannot connect to registry.npmjs.org

You can try pinging using the following command; $ ping registry.npmjs.org. If it does not ping it means your device cannot connect. You can check the following;

  1. Check your connection, are you sure you have a connection to the internet?
  2. Check your proxy
  3. Check your firewall, you can try disabling it

You can also see this stackoverflow question for similar answers

Tetie
  • 365
  • 1
  • 14