Windows Powershell 更新 Claude Code CLI 失败:ECONNREFUSED
更新命令: irm https://claude.ai/install.ps1 | iex。重新更新CLI,问题解决。
·
更新命令:
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!更多推荐



所有评论(0)