【问题标题】:Error: You cannot use gems with Shopify CLI错误:您不能通过 Shopify CLI 使用 gem
【发布时间】:2021-07-14 10:13:26
【问题描述】:

我是 Shopify 主题开发的新手。目前正在学习 Shopify 的教程。一切进展顺利,但每次运行“Shopify 主题服务”时都会出现以下错误:

[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?
X You are not authorized to edit themes on banana-man-co.myshopify.com.
Make sure you are a user of that store, and allowed to edit themes.

另外,我知道它说我无权编辑主题,但我很确定我是以管理员身份登录的。有人知道如何解决这个问题吗?

【问题讨论】:

  • 您尝试在 Gemfile 中添加 gem 'wdm', '>= 0.1.0' if Gem.win_platform? 吗?另外,如果你运行的是 windows,Ruby 不能很好地配合它。
  • 我正在运行 Windows。我会尝试添加它。谢谢

标签: ruby rubygems shopify


【解决方案1】:

运行

gem 安装 wdm

在命令提示符下。

那么你不会看到这个问题,但仍然会看到

X You are not authorized to edit themes on banana-man-co.myshopify.com.
Make sure you are a user of that store, and allowed to edit themes.

关注https://shopify.dev/themes/tools/cli/getting-started上的注意部分。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-18
    相关资源
    最近更新 更多