SyntaxFix
Write A Post
Hire A Developer
Questions
I had the same problem when trying to run npm on system emulated in Oracle VirtualBox. I resolved it by adding Google DNS address in Network Adapter properties.
npm
Network Adapter properties > IPv4 properties > Preferred DNS address: 8.8.8.8.
8.8.8.8