更新命令: 

irm https://claude.ai/install.ps1 | iex 

运行结果:

Setting up Claude Code...

× Installation failed

Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: ECONNREFUSED


Try running with --force to override checks

✅ Installation complete!

网络链接错误,但是 https://claude.ai/ 可以在浏览器内访问。

尝试让Powershell直接使用代理,在命令窗临时修改:

$env:HTTP_PROXY="http://127.0.0.1:7879"; $env:HTTPS_PROXY="http://127.0.0.1:7879"

重新更新CLI,问题解决:

Setting up Claude Code...

√ Claude Code successfully installed!

  Version: 2.1.129

  Location: C:\Users\***\.local\bin\claude.exe


  Next: Run claude --help to get started

✅ Installation complete!
Logo

欢迎加入DeepSeek 技术社区。在这里,你可以找到志同道合的朋友,共同探索AI技术的奥秘。

更多推荐