
To check the value of the certificate path at the cafile key, use the following command to list all keys in your npm config: Using yarn to set cafile You’ll have to add cafile as the key, and set the path to your certificate as the value. cafile config optionīoth npm and yarn, support a cafile config option. It may happen when installing packages from a private registry (via npm install or yarn install) without an appropriately setup certificate in config. This occurs particularly with plugins or themes that need to be built as native Node.js modules (e.g.

If you’re seeing errors like unable to get local issuer certificate in the console output while trying to install a Gatsby plugin, a misconfigured certificate might be the problem. Common errors from misconfigured certificates

We know our custom registry has an invalid SSL certificate. The registry is protected using a self-signed root CA certificate. We're using an internal registry via npm config set registry which is behind a corporate proxy. Running npm install on throws UNABLE_TO_VERIFY_LEAF_SIGNATURE

