sudo nano /etc/hosts Add this line: 104.16.110.30 registry.npmjs.org npmjs.org registry.npmjs.com npmjs.com