【发布时间】:2021-11-22 14:24:14
【问题描述】:
我在我的 Mac 上使用 homebrew 安装了 shopify-cli,并尝试通过运行 shopify version 来验证安装,但我收到错误消息:
/usr/local/bin/shopify: line 2: /opt/homebrew/Cellar/ruby/3.0.1/bin/ruby: No such file or directory
知道需要修复什么吗?
【问题讨论】:
-
确保您已安装 Ruby?错误很明显,无论出于何种原因,您当前没有用于 shell 操作的有效 Ruby。
-
如果我没记错的话,Mac 预装了 Ruby。无论如何,如果我运行
ruby -v,它会输出ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin21]。我假设 Ruby 已安装,但可能在 shopify-cli 期望找到它的位置/路径以外的位置/路径...