npm
npm SSL certificate is untrusted or leaf signature cannot be verified
npm could not validate the TLS certificate chain for the registry connection, often because of outdated runtime support, custom CA issues, or an inspecting proxy.
npm
npm could not validate the TLS certificate chain for the registry connection, often because of outdated runtime support, custom CA issues, or an inspecting proxy.
Observed message
npm ERR! Error: SSL Error: CERT_UNTRUSTED / UNABLE_TO_VERIFY_LEAF_SIGNATURE
Why it happens
How to fix it
Official reference
npm Docs: Common errorsRelated errors
Explore more