大家Claude code更新是走Native还是npm?

Underthemoon 2026-06-04 11:19 1

Native方式走 downloads.claude.ai一直被Claude CND拒绝


❯ Claude update
Current version: 2.1.159
Checking for updates to latest version...
Error: Failed to install native update
Error: Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest after 3 attempt(s): The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()
Try running "claude doctor" for diagnostics



大家更新的话是不是也倾向于使用npm

命令:npm install -g @anthropic-ai/claude-code@latest;

最新回复 (7)
  • q888chen 06-04 11:21
    1

    用native了, 你终端没有设置代理吧

  • 徐北枳 06-04 11:21
    2

    一直是用的npm更新的,还没试过Native

  • Underthemoon 楼主 06-04 11:22
    3

    终端之前就已经把代理写到.zsh/了

  • q888chen 06-04 11:26
    4

    那你让codex帮你一顿分析吧, co老师肯定帮得上你的忙

  • 06-04 11:27
    5

    只需要一条命令 那就是 claude update 通杀所有

  • 2Qs 07-09 20:49
    6

    我也是梯子开系统代理,终端设置了代理,更新报错,开了 tun 就好了。

  • AstralDream 07-09 21:15
    7

    npm方式安装的,更新一直是claude update就可以了吧

* 帖子来源Linux.do
返回