You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

创建Shopify主题失败:无法创建名为‘Development’的主题

Shopify主题初始化报错:无法创建名为"Development"的主题

我首次尝试用Shopify创建主题,执行了以下命令:

npm install -g @shopify/cli @shopify/theme
shopify theme init
cd "dresit"
shopify theme dev --store dresit

执行后报错:couldn't create theme with name "Development",堆栈信息指向node_modules内部,推测是配置问题但无法定位。已经试过重新安装Shopify CLI、重建项目、重新登录CLI,问题仍未解决,恳请提供排查方向。

附终端截图:
终端截图1
终端截图2

排查方向

  • 检查店铺权限:确认登录的CLI账号对目标店铺dresit拥有主题创建/编辑权限,需使用店铺所有者或具备对应权限的员工账号操作
  • 清理本地CLI缓存:执行shopify logout完全退出后,删除本地CLI缓存目录(Mac/Linux路径为~/.shopify-cli,Windows为%APPDATA%\shopify-cli),再重新登录重试
  • 手动指定主题名称:跳过默认的"Development"命名,执行shopify theme init --name "MyCustomDevTheme"初始化项目,进入目录后再运行shopify theme dev --store dresit
  • 验证Node.js版本:Shopify CLI要求使用v16及以上的LTS版本(如v16.20.0、v18.17.0),版本不兼容可能引发内部依赖错误,可通过node -v检查当前版本
  • 检查店铺主题数量上限:登录Shopify后台(路径:Online Store > Themes),确认当前主题数量是否已达套餐上限,若已满需删除闲置主题后再尝试创建

内容的提问来源于stack exchange,提问作者Rishikesh Tiwari

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 01:03:22