更新 claude-code.md 安装方式与前置条件
- 改用官方脚本安装(curl/PowerShell),无需 Node.js - 新增独立"前置条件"章节,注明科学上网要求 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4d653c13a0
commit
10e200f191
@ -4,25 +4,27 @@ Claude Code 是 Anthropic 官方出品的 AI 编程助手,运行在终端(
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 前置要求
|
## 前置条件
|
||||||
|
|
||||||
- 安装 [Node.js](https://nodejs.org/) 18 或以上版本
|
- **科学上网**(安装及使用全程需要)
|
||||||
- 能访问 Anthropic 服务的网络环境
|
- Windows 用户需额外安装 [Git for Windows](https://git-scm.com/downloads/win)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
在终端中运行:
|
根据你的系统选择对应命令,在终端中运行即可,会自动保持最新版本:
|
||||||
|
|
||||||
|
**macOS / Linux / WSL:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install -g @anthropic-ai/claude-code
|
curl -fsSL https://claude.ai/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
安装完成后验证:
|
**Windows PowerShell:**
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
claude --version
|
irm https://claude.ai/install.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user