Shopify CLI installation error - NPM unable to get issuer certificate locally on macOS Ventura 13.1

Hey! :victory_hand:t4:

The issue I’m getting on the terminal after running

brew tap shopify/shopify
brew install shopify-cli

is this one:

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/@oclif%2fcore failed, reason: unable to get local issuer certificate

I’ve been trying to change the NPM version (from 14.20.1, 16.17.0, 18.11.0, to 19.3.0) with fnm, managing Ruby with rbenv to update versions (from 2.6.10, all the way up to 3.1.3), uninstalling Ruby from Homebrew and reinstalling it with all the other dependencies needed by Shopify CLI from scratch, but so far, I have gotten the same error.

I’m using a Macbook Air with an M1 chipset, on macOS Ventura 13.1

Any ideas?

1 Like

Hi @emlez :waving_hand:

For issues with Shopify CLI, the best course of action would be submit a Github issue here in the public repo directly.

Hope that helps!

1 Like

I had the same issue, I fixed it by setting the ssl config of npm to false

npm config set strict-ssl false
1 Like