Skip to content

Shopify CLI 3.0 installation doesn't work #777

Open

Description

Hi!
I tried to install Shopify CLI to my MacOS with install shopify-cli but it's not installing.

This is the error:

➜  ~ brew install shopify-cli       
==> Fetching shopify/shopify/shopify-cli
==> Downloading https://registry.npmjs.org/@shopify/theme/-/theme-3.50.0.tgz
Already downloaded: /Users/kd/Library/Caches/Homebrew/downloads/705bede8649a0a5803bab25cfd3564d44b8868eb4810c3707c29c231142e7858--theme-3.50.0.tgz
==> Downloading https://registry.npmjs.org/@shopify/cli/-/cli-3.50.0.tgz
Already downloaded: /Users/kd/Library/Caches/Homebrew/downloads/3b1c236691b367d5754244d3cf2fd8ec95171892e890781b29bf7fb453bdb7e2--cli-3.50.0.tgz
==> Installing shopify-cli from shopify/shopify
==> npm install -ddd --global --build-from-source --cache=/Users/kd/Library/Caches/Homebrew/npm_cache --prefix=/opt/homebrew/Cellar/shopify-cli/3.50.0/libe
Last 15 lines from /Users/kd/Library/Logs/Homebrew/shopify-cli/01.npm:
npm verb stack     at onSocketNT (node:_http_client:895:5)
npm verb stack     at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
npm verb cwd /private/tmp/shopify-cli-20231025-44046-1pevp05/package
npm verb Darwin 23.1.0
npm verb node v21.1.0
npm verb npm  v10.2.0
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
npm verb exit 1
npm verb unfinished npm timer reify 1698237662209
npm verb unfinished npm timer reify:loadTrees 1698237662213
npm verb code 1

npm ERR! A complete log of this run can be found in: /Users/kd/Library/Caches/Homebrew/npm_cache/_logs/2023-10-25T12_41_02_130Z-debug-0.log

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/shopify/homebrew-shopify/issues

These open issues may also help:
Shopify CLI not installing on Mac https://github.com/Shopify/homebrew-shopify/issues/620
npm ERR! when installing shopify cli https://github.com/Shopify/homebrew-shopify/issues/452
Shopify CLI not installing on mac 12.4 via homebrew. https://github.com/Shopify/homebrew-shopify/issues/376

I already tried everything I found on the internet, but nothing helps.
I tried:
brew reinstall --build-from-source [email protected] xcodebuild -runFirstLaunch

I also added this lines to my .zshrc, but nothings helps.
export PATH="/usr/local/opt/[email protected]/bin:$PATH" export LDFLAGS="-L/usr/local/opt/[email protected]/lib" export CPPFLAGS="-I/usr/local/opt/[email protected]/include" export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"

Do you have an idea how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions