The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Search for word "security" on npm website returns error "Hostname/IP doesn't match certificate's altnames"
What I Wanted to Do
Search for a word “security” to find security-related modules
Here is URL - https://www.npmjs.com/search?q=security
What Happened Instead
I got error
" Hostname/IP doesn’t match certificate’s altnames: “Host: api.npmjs.org. is not in the cert’s altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net”"
- You should be not logged into NPM (you can use Chrome incognito mode)
- Type “security” into search field or just use this url https://www.npmjs.com/search?q=security
I have the same issue here
I am also getting the same issue and when checking the certificates with an external tool get the following error…
I’m also getting this error as of about 6:30am this morning (Sept. 1st). Except I was trying to publish something (had published it successfully about 30-40 min. before). Error:
npm notice npm ERR! publish Failed PUT undefined npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID npm ERR! Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net
See this post, Unable to install anything with NPM (or apm)