This is often also caused by corporate proxies that give HTML responses to package.json requests.