Skip to content

Instantly share code, notes, and snippets.

@zethon
Last active September 25, 2023 20:40
Show Gist options
  • Save zethon/113bd7d4ff463840a86cdfb47520e436 to your computer and use it in GitHub Desktop.
Save zethon/113bd7d4ff463840a86cdfb47520e436 to your computer and use it in GitHub Desktop.

NPM error with installing dependencies:

npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! request to https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz failed, reason: unable to get local issuer certificate

Fixed with:

npm set strict-ssl false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment