安装 Claude
- 打开 VSCode
- 点击顶部菜单「终端」→「新建终端」
- 终端窗口会在 VSCode 底部打开
- 输入以下命令

- 苹果电脑如果遇到权限错误(提示
errno: -13),请使用以下命令:
更新 Claude
- 打开终端:VSCode 顶部菜单「终端」→「新建终端」
- 终端输入以下命令
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
在 VSCode 终端中安装和更新 Claude Code

npm install -g @anthropic-ai/claude-code
errno: -13),请使用以下命令:sudo npm install -g @anthropic-ai/claude-code
| 操作 | 命令 |
|---|---|
| 查看当前版本 | claude --version |
| 更新到最新版 | claude install |
| 通过 npm 更新到最新版本 | npm update -g @anthropic-ai/claude-code |
| 安装指定版本 | npm install -g @anthropic-ai/claude-code@版本号 |