ruby Shopify CLI -错误:无法装入这样的文件--wdm

h7appiyu  于 2023-01-12  发布在  Ruby
关注(0)|答案(1)|浏览(89)

我得到这个错误时,运行命令shopify theme dev与Shopify CLI:

[Note] You cannot use gems with Shopify CLI.
[LoadError] cannot load such file -- wdm
       They are disabled.
       Please don't modify the CLI locally.
       If you would like to contribute to the CLI project, please refer to
       https://github.com/Shopify/shopify-cli/blob/main/.github/CONTRIBUTING.md

  Please add the following to your Gemfile to avoid polling for changes:
    gem 'wdm', '>= 0.1.0' if Gem.win_platform?

其他过去有过类似问题的人建议运行gem install wdm,我已经这样做了,没有成功。任何帮助都很感激!!

  • 操作系统: windows 11
  • Shopify-CLI:3.23.0
  • Ruby:Ruby3.0.4p208(2022年4月12日修订版本3fa771ded)[x64-mingw32]
  • 节点. js:版本18.12.1
  • 捆绑包版本2.3.25(2022年11月2日提交,第6b0b87b1版)
  • git版本2.38.1.windows操作系统
xwbd5t1u

xwbd5t1u1#

我也遇到了同样的问题,我升级到了最新版本的Shopify CLI(3. 32. 1),问题得到了解决。
使用命令提示符,只需输入以下命令即可升级Shopify CLI:

shopify upgrade

相关问题