From 10e200f1910d99e16034d1159d1c8ad0070c14b1 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 28 Feb 2026 15:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20claude-code.md=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=96=B9=E5=BC=8F=E4=B8=8E=E5=89=8D=E7=BD=AE=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 改用官方脚本安装(curl/PowerShell),无需 Node.js - 新增独立"前置条件"章节,注明科学上网要求 Co-Authored-By: Claude Sonnet 4.6 --- claude-code.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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 ``` ---