Closed irenenam closed 2 years ago
@amcaplan I reopened the issue, because it did not solve it yet. Also, I did tophat with the new version and getting this error when I do shopify version
irenenam@Irenes-MacBook-Pro ~/src/github.com/Shopify/shopify-cli main brew install shopify-cli
==> Fetching shopify-cli from gem source
Downloaded shopify-cli-2.11.1
==> Installing shopify-cli from shopify/shopify
==> /opt/homebrew/opt/ruby/bin/gem install /Users/irenenam/Library/Caches/Homebrew/shopify-cli-2.11.1.gem --no-document --no-wrapper --no-user-install --install-dir /opt/homebrew/Cellar/shopify-cli/2.11.1 --bindir /opt/homebr
🍺 /opt/homebrew/Cellar/shopify-cli/2.11.1: 2,111 files, 40.9MB, built in 8 seconds
==> Running `brew cleanup shopify-cli`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
irenenam@Irenes-MacBook-Pro ~/src/github.com/Shopify/shopify-cli main shopify version
Traceback (most recent call last):
2: from /Users/irenenam/.gem/ruby/2.7.5/bin/shopify:23:in `<main>'
1: from /opt/rubies/2.7.5/lib/ruby/site_ruby/2.7.0/rubygems.rb:300:in `activate_bin_path'
/opt/rubies/2.7.5/lib/ruby/site_ruby/2.7.0/rubygems.rb:281:in `find_spec_for_exe': can't find gem shopify-cli (>= 0.a) with executable shopify (Gem::GemNotFoundException)
The issue should be fixed in version 2.11.2. Please let me know if it doesn't.
@gonzaloriestra 👋 I 🎩 ed. It works as expected. Thank you!
Seeing this issue with @shopify/cli/3.30.2 darwin-x64 node-v14.18.2
(that's the output of npx shopify --version
):
~/code/js/XXX/src/client >ruby -v
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-darwin17]
~/code/js/XXX/src/client >npx shopify theme push XXXXX
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.email Use `--init-author-email` instead.
── external error ────────────────────────────────────────────────────────────────────────────
Error coming from `bundle config set --local path /Users/sshaw/Library/Caches/shopify-cli-nodejs/vendor/ruby-cli/2.33.0`
Command failed with exit code 126: bundle config set --local path /Users/sshaw/Library/Caches/shopify-cli-nodejs/vendor/ruby-cli/2.33.0
No version set for command bundle
Consider adding one of the following versions in your config file at
ruby 2.6.6
ruby 2.7.2
ruby 3.1.3
──────────────────────────────────────────────────────────────────────────────────────────────
Node.js executable that depends on Ruby that depends on configuring bundler‽ 🤯
Node.js executable that depends on Ruby that depends on configuring bundler‽ 🤯
Oh wait. This is the Shopify/shopify-cli repo. Not to be confused with the Shopfiy/cli repo which is where the Node.js code lives. Going to move this commentary there 🤯🤯
@sshaw Yes, I was going to suggest that. Would you mind creating an issue there? We know it's a bit cumbersome right now, sorry.
Issue summary
The issue only happens when I install
shopify
through homebrew.Install shopify-cli with brew install.
And checked the shopify version and got the latest version 2.11.0.
When I run the
shopify app serve
in the terminal, I was getting the error like below.Put the log to see the GEM_PATH and the GEM_PATH sets as
"/opt/homebrew/Cellar/shopify-cli/2.11.0"
not as/opt/rubies/2.7.2/lib/
.This is my
shopify system all
info.This does not happen with the installation through RubyGems. After I uninstall the brew and reinstall via the gem.
shopfiy app serve
works as expected.