cli: [Bug]: shopify theme dev error
Please confirm that you have:
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Theme
Expected behavior
The Shopify CLI to start up and display links to the dev store.
Actual behavior
bundler: not executable: /opt/homebrew/Cellar/shopify-cli/3.44.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify
Error
at execCLI2 (file:///opt/homebrew/Cellar/shopify-cli/3.44.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/dist/public/node/ruby.js:55:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Stack trace
No response
Reproduction steps
- Go to theme directory on local machine
- Run ‘shopify theme dev --store [myshopifystore]’
Shopify CLI was working fine yesterday. Today Homebrew noted that Shopify-CLI 3.44.0 was available and (I think) a Node update as well. After updating via brew upgrade
, Shopify-CLI wasn’t working.
Operating System
Mac OS Ventura 13.2.1
Shopify CLI version (check your project’s package.json
if you’re not sure)
3.44.0
Shell
Hyper and VSCode
Node version (run node -v
if you’re not sure)
v19.7.0
What language and version are you using in your application?
Liquid, HTML, CSS, JS
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 5
- Comments: 25 (8 by maintainers)
Thanks for the reports folks, most of the team is EMEA based so we’re going to release a fix tomorrow for homebrew installations. Another fix I’ve found is to make the binary executable like so:
After that I was able to run
shopify theme
commands. Does this fix things for you as well?hi @kyrylo-soulandwolf, we just released
3.45.0
which includes the above fix. In the future, you can opt in prerelease versions which come out weekly:Is this related to the bug that popped up 2 weeks ago? The cli incantation that fixes it is the same.
https://github.com/Shopify/cli/issues/1320
I’m seeing this issue when deploying via a github action.
It should be fixed in v3.44.1. Sorry for the inconvenience!
As mentioned in https://github.com/Shopify/cli/issues/1425#issuecomment-1440957987 I also get this error when running
shopify theme push
from Github actions. Prepending the command withSHOPIFY_CLI_BUNDLED_THEME_CLI=1
appears to be a valid workaround.