# 使用shopify cli开发主题 在执行shopify theme dev命令出现以下报错

**URL:** <https://community.shopify.com/t/shopify-cli-shopify-theme-dev/330075>\
**Category:** Shopify 设计\
**Created:** [June 9, 2024, 2:46am UTC](https://community.shopify.com/t/shopify-cli-shopify-theme-dev/330075 "2024-06-09T02:46:22Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

开发者在使用 Shopify CLI 开发主题时遇到连接错误。

**主要问题：**

第一位用户执行 `shopify theme dev` 命令时出现报错（具体错误信息见截图）。虽然使用 `shopify theme info` 查询其他应用版本显示正常，但主题开发命令无法正常运行。

第二位用户遇到类似问题，执行 `shopify theme list` 时报错：
- 错误类型：连接到店铺时出现未知错误
- 错误信息："The user aborted a request"
- 涉及模块：fetchApiVersions、adminRequestDoc、fetchThemes 等
- 技术栈：Node.js 18.20.2，@shopify/cli

**当前状态：**

讨论仍在进行中，尚未找到解决方案。两位用户都遇到了 Shopify CLI 与店铺连接的问题，可能与 API 版本获取、网络连接或认证相关。问题需要进一步排查堆栈跟踪信息以确定根本原因。

<div class="post-metadata">

**Author:** ![\_6\_3](https://avatars.discourse-cdn.com/v4/letter/_/47e85d/32.png) [@\_6\_3](https://community.shopify.com/u/_6_3)\
**Post date:** [June 9, 2024, 2:46am UTC](https://community.shopify.com/t/shopify-cli-shopify-theme-dev/330075/1 "2024-06-09T02:46:22Z")

</div>

使用shopify cli开发主题 在执行shopify theme dev命令出现以下报错

 ![2_1-1717901098558.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/8/1/818a48af8d9b7ecb4aca46c7df15bb30fc7764a8.png)

我用shopify theme info查询其他应用的版本都是正常的

 ![2_0-1717901071331.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/e/8/e81abc10289cef5eb313d8c150add018d791bc46.png)

---

<div class="post-metadata">

**Author:** ![chevsky](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/chevsky/32/353336_2.png) [@chevsky](https://community.shopify.com/u/chevsky)\
**Post date:** [April 2, 2025, 8:54am UTC](https://community.shopify.com/t/shopify-cli-shopify-theme-dev/330075/2 "2025-04-02T08:54:32Z")

</div>

我执行这个都报错了，大佬知道是怎么回事吗？  
shopify theme list  
╭─ error ──────────────────────────────────────────────────────────────────────────────────────────╮  
│ │  
│ Unknown error connecting to your store [xxxx.myshopify.com](http://xxxx.myshopify.com): The user aborted a request. │  
│ │  
│ To investigate the issue, examine this stack trace: │  
│ at fetchApiVersions │  
│ (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:167669) │  
│ at processTicksAndRejections (node:internal/process/task\_queues:95) │  
│ at async supportedApiVersions │  
│ (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:167659) │  
│ at async fetchLatestSupportedApiVersion │  
│ (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:167655) │  
│ at async adminRequestDoc │  
│ (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:167636) │  
│ at async fetchThemes │  
│ (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:167728) │  
│ at async fetchStoreThemes │  
│ (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:169636) │  
│ at async list │  
│ (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:172687) │  
│ at command (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:172715) │  
│ at run (Users/1/.nvmd/versions/18.20.2/node\_modules/@shopify/cli/dist/index.js:166441)
