开始使用 Claude Code
从系统要求到第一个项目设置的完整安装指南。
1
检查系统要求2
安装 Claude Code3
身份验证设置4
第一个项目1检查系统要求
操作系统
macOS, Linux, Windows (WSL)
系统要求
Node.js 18+, 4GB RAM
网络
稳定的互联网连接
Windows 用户注意
Claude Code 不能在 Windows 上直接运行。请使用 WSL(Windows Subsystem for Linux)环境。
2安装 Claude Code
推荐Native Install
macOS / Linux / WSL
curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell
irm https://claude.ai/install.ps1 | iex后台自动更新
Homebrew(macOS)
brew install --cask claude-code运行 `brew upgrade claude-code` 更新
WinGet(Windows)
winget install Anthropic.ClaudeCode运行 `winget upgrade` 更新
需要账户
需要 Claude Pro、Max、Teams、Enterprise 或 Claude Console 账户
NPM 安装已弃用
npm install -g @anthropic-ai/claude-code 不再支持。请使用上面的原生安装。
3身份验证设置
在项目中开始
cd my-project && claude1
Console
推荐方式
2
Pro/Max
订阅绑定
3
企业版
AWS/GCP
4第一个项目
理解项目
claude> summarize this project项目初始化
claude> /init设置完成!
现在您可以与 Claude Code 一起开始智能开发了。