skip to Main Content

I installed shopify-cli using homebrew on my Mac and tried verifying the installation by running shopify version, but I get an error:

/usr/local/bin/shopify: line 2: /opt/homebrew/Cellar/ruby/3.0.1/bin/ruby: No such file or directory

Any idea what needs to be fixed?

2

Answers


  1. It appears that shopify-cli was installed when your Homebrew ruby was at version 3.0.1. This can be fixed by running the following command:

    brew reinstall shopify-cli
    

    (Ideally, the shopify-cli formula should be updated by its maintainers to replace hardcoded ruby paths to the version-agnostic /opt/homebrew/opt/ruby. Alternatively, they could track the Homebrew ruby version and bump the revision of shopify-cli whenever an update occurs. This will prompt end-users to run brew upgrade, which will automatically reinstall shopify-cli.)

    Login or Signup to reply.
  2. Try running brew install [email protected]. It worked for me!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search