Shopify cli error

shopify cliを利用しようとしたところ下記のようなエラーが表示され、利用できませんでした。

対処方法がありましたら教えていただけますと幸いです。

X An unexpected error occured.
To submit an issue include the stack trace.

C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:221:in spawn': No such file or directory - node (Errno::ENOENT) from C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:221:in popen_run’
from C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:102:in popen3' from C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:289:in capture3’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/system.rb:199:in delegate_open3' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/system.rb:90:in capture3’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/context.rb:557:in capture3' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/environment.rb:17:in node_version’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/command.rb:104:in check_node_version' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/command.rb:33:in call’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/core/executor.rb:17:in block (2 levels) in call' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in block (2 levels) in with_logging’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in with_id' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in block in with_logging’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-ui/lib/cli/ui.rb:176:in log_output_to' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in with_logging’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/core/executor.rb:16:in block in call' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in block (2 levels) in with_traps’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:51:in twrap' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in block in with_traps’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:51:in twrap' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in with_traps’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/core/executor.rb:15:in call' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/core/entry_point.rb:24:in block in call’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/core/monorail.rb:30:in log' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/lib/shopify_cli/core/entry_point.rb:23:in call’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/bin/shopify:37:in block (2 levels) in <top (required)>' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in handle_abort’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in call' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/bin/shopify:36:in block in <top (required)>’
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.11.0/bin/shopify:47:in <top (required)>' from C:/Ruby30-x64/bin/shopify:25:in load’
from C:/Ruby30-x64/bin/shopify:25:in `’

株式会社フィードフォースの大道と申します。

Shopify CLI の GitHub リポジトリに同様の Issue があり、回答がついていました。

https://github.com/Shopify/shopify-cli/issues/2039#issuecomment-1036291217

It looks like, since v2.11.0, we are requiring Node for some operations that don’t really need it. As a workaround while we fix it, you could just install it or downgrade to v2.10.2.> 日本語訳: v2.11.0以降、Nodeを必要としない操作にもNodeを必要とするようになったようです。この問題を修正するまでの回避策として、Nodeをインストールするか、v2.10.2へダウングレードしてください。

結論、不具合が修正されるまでは以下のどちらかで対応いただけると良いかと思います。

  • Node.js をインストール
  • Shopify CLI を v2.10.2 にダウングレード

Ruby の gem として Shopify CLI をインストールされている場合は、以下のコマンドで再インストールすれば解決するのではないかと思います。(もちろん Node.js をインストールする方法でも構いません)


$ gem uninstall shopify-cli

$ gem install shopify-cli -v 2.10.2

$ shopify version
2.10.2

1 Like