Claude Code 安装、更新与卸载指南
⚠️ 国内用户会出现不能访问或卡住的问题。
curl -fsSL https://claude.ai/install.sh | bash
安装后的可执行文件路径:/Users/junjian/.local/bin/claude
下面是安装卡住,但是程序已经下载成功,我手动安装完成的过程:
下载的二进制文件会被保存在 ~/.claude/downloads 目录下:
ll ~/.claude/downloads
-rwxr-xr-x 1 junjian staff 205M 5月 29 22:56 claude-2.1.156-darwin-arm64
我们需要把它移动到 ~/.local/share/claude/versions 目录下,并创建一个软链接到 ~/.local/bin: