logbang

请教 Windows Claude code cli 要如何更新?

  •  
  •   logbang · 5 days ago · 982 views
    挂了霉国节点,claude --upgrade 还是更新不了:

    PS C:\Users\Administrator> claude --upgrade
    Current version: 2.1.117
    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: ECONNREFUSED
    Try running "claude doctor" for diagnostics
    PS C:\Users\Administrator> claude doctor

    ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    Diagnostics
    ├ Currently running: native (2.1.117)
    ├ Commit: 5e9d59ce46d5
    ├ Platform: win32-x64
    ├ Path: C:\Users\Administrator\.local\bin\claude.exe
    ├ Config install method: native
    └ Search: OK (bundled)

    Updates
    ├ Auto-updates: disabled (set by env: CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)
    ├ Auto-update channel: latest
    └ Version check skipped (essential-traffic-only mode)

    Still having issues? Run /feedback to report details.

    Press Enter to continue
    PS C:\Users\Administrator>
    Supplement 1  ·  5 days ago
    在 powershell 配置一下环境变量后可以了,谢谢
    $env:HTTPS_PROXY = "http://127.0.0.1:7890"
    $env:HTTP_PROXY = "http://127.0.0.1:7890"
    $env:NO_PROXY = "localhost,127.0.0.1"
    3 replies    2026-05-08 15:27:26 +08:00
    twofox
        1
    twofox  
       5 days ago
    看起来还是网络的问题,可以换一个节点看看
    fbu11
        2
    fbu11  
       5 days ago
    windows 电脑用 winget 呗
    winnerczwx
        3
    winnerczwx  
       5 days ago
    用 npm 直接更新不行吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1405 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 17:05 · PVG 01:05 · LAX 10:05 · JFK 13:05
    ♥ Do have faith in what you're doing.