ERR_TLS_CERT_ALTNAME_INVALID indicates self signed TLS error.
Obsured by the following where xxxx.xxx.com can be a variety of host names.
Hostname/IP does not match certificate's altnames: Host: localhost. is not in the cert's altnames: DNS:xxxx.xxx.com\",\"cause\":{\"reason\":\"Host: localhost. is not in the cert's altnames: DNS:xxxx.xxx.com,
This will work but is really bad. because every cert is ignored.
export NODE_TLS_REJECT_UNAUTHORIZED=0
The better solution, I Discovered that the headers had values that contridicted the url. I lost the details, but Im sure it was host
I have the same error when i run npm install || yarn. But my problem is with codeload.github.com. And there is not error on my other computers. I tried install vpn, set github config sslverify to false and exc. But these didnt help me, and i cant find solution.
Host: codeload.github.com. is not in the cert's altnames: DNS:dns.google, DNS:dns.google.com