diff --git a/claude-code.md b/claude-code.md index 617b97b..9a451c2 100644 --- a/claude-code.md +++ b/claude-code.md @@ -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 -npm install -g @anthropic-ai/claude-code +curl -fsSL https://claude.ai/install.sh | bash ``` -安装完成后验证: +**Windows PowerShell:** -```bash -claude --version +```powershell +irm https://claude.ai/install.ps1 | iex ``` ---