Shopify-cli 无法打开

Topic summary

核心问题:
Shopify CLI本地开发环境无法正常启动。执行shopify theme serve命令后,验证登录页面弹出,登录后命令行无响应或卡死,最终报错超时(connect ETIMEDOUT)。

症状表现:

  • 升级CLI后问题依旧存在
  • shopify login --store命令原本显示三个"√"符号,现在只显示一个
  • 多位开发者遇到相同问题,排除了主题模板和Ruby版本因素
  • 错误信息显示授权服务器连接超时(162.159.137.103:443)

解决方案探讨:

  1. CLI版本: 有用户反馈CLI 2.0版本正常,3.0版本出现问题
  2. VPN配置(关键):
    • 需使用带中转服务器的VPN节点
    • 开启全局模式
    • 推荐使用Astrill等稳定VPN服务
    • 普通VPN全局模式可能无效
  3. 其他方案: 设置CMD代理、重启电脑、Windows下安装到C盘

当前状态: 问题未完全解决,部分用户通过特定VPN+全局模式+CLI 2.0组合成功运行

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

本地shopify theme serve 无法打开主题

大家好,我是一名shopify模板开发人员,就在这个周一,我回来工作的时候发现shopify的本地脚手架无法正常运行了,开始提示的信息是shopify-cli的脚手架版本过低,于是我进行了更新,更新后依旧无法正常启动脚手架,在我输入shopify theme serve 命令行的时候,会弹出一个进行验证登录网址,我进行验证登录后,cmd命令处也没有任何响应,如error_mes.jpg图片所示内容,一直卡死在这个页面,直到报错发送邮件,有时候会出现error.jpg图示的错误,我非常有印象,以前进行shopify theme serve命令的时候很少会出现验证登录的网址弹出,在进行登录命令shopify login --store https://nomadbasic.com/会出现三个”√“符号,目前只有图error.jpg所示的一个,我一个同样开发shopify模板的师傅,也遇到和我一样的问题,我们尽可能排除自身原因,排除了主题模板以及Ruby gem 和shopify-cli版本问题等部分原因,由于没法快速找到问题的所在,所以向大家发送了求助信息,希望能够得到解答,非常感谢!

Hello, I am a developer of shopify template. On this Monday, when I came back to work, I found that the local scaffold of shopify could not run normally. The message I started to prompt was that the scaffold version of shopify cli was too low, so I updated it. After the update, the scaffold could not be started normally. When I entered the shopify theme serve command line, a login website for verification would pop up, After I log in through authentication, there is no response from the cmd command, such as error_ mes. The content shown in the jpg image is stuck on this page until an error is reported and the email is sent. Sometimes an error occurs I was very impressed by the error in the jpg diagram. Before, when I used the shopify theme serve command, the URL for verification login rarely popped up. When I used the shopify login – store command https://nomadbasic.com/ There will be three “√” symbols. At present, there is only one as shown in the figure error.jpg. I, a teacher who also developed the shopify template, also encountered the same problems as me. We tried our best to eliminate our own reasons and some reasons such as the theme template, Ruby gem and shopify cli version problems. Since we couldn’t find the problem quickly, we sent a help message to everyone, hoping to get answers. Thank you very much!

Sorry, I don’t know how to upload the picture, I will display the picture content in text。

error_mes.jpg:

C:\UsersAdministrator\Desktop {myfile_name}>shopify theme serve
一viewing theme…--------------------------------------------------------

error.jpg

C: [Users\Administrator\Desktop{myfile_name}>shopify theme serve
一viewing theme…--------------------------------------------------------
----------------------------------------------------------------------0.01s-
X No store found. P1ease run shopify 1ogin --store/-s STORE to login to a specific store
C:;Users\Administrator\Desktop{myfile_name}>shopify 1ogin --store {my_store}
X An unexpected error occured.
To submit an issue include the stack trace.
?Send an anonymized error report to Shopify7?(Navigate up with ‘r’and down with ’ j’,press Enter to select, ilter with 'f’)

  1. yes, send
  2. No,’don’t send

今天已经好了

1 Like

今天早上是不是又不行了?昨天开发还好好的

刚看完你回复就打开了 :joy:

连接的时候经常会出现这种问题,

不要手欠升级版。

我是升级了最新的 shopify cli。

failed, reason: connect ETIMEDOUT 162.159.130.71:443

授权认证服务器一直连不上。

你这个问题我遇到过。也是手欠升级。 但是我是重启电脑基本就没有问题了

现在好了吗?我这边还是不行,一直报错,错误和你贴的一样

今天我还是不行,还是连接超时

真的无语了,好无奈,有人知道有什么办法可以解决这个问题吗?

发挥钞能力, 买个vpn 开全局模式

motao_2002_0-1667434716210.png

有全局,没用

你用的什么vpn

你开全局有用吗?我一直是开全局,为什么没用?

你用的那个vpn

请问下现在你用的shopify cli是什么版本的,我的是2.24
Snipaste_2022-11-03_14-22-09.png

我是3.0出问题,2.0正常

用的vpn是 astrill

跟vpn有关吗?能推荐个可以用的吗?

我有三个vpn 就这个能用

你用shopify cli2.0就没问题对吗?