【发布时间】: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。我会尝试添加它。谢谢