Claude Code4 种安装方式(任选其一)

📅 2026/6/18 3:02:03
Claude Code4 种安装方式(任选其一)
方式 1官方原生一键安装推荐自动更新macOS / Linux / WSLbash运行curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell管理员powershellirm https://claude.ai/install.ps1 | iexWindows CMDcmdcurl -fsSL https://claude.ai/install.cmd -o install.cmd install.cmd del install.cmd方式 2NPM 全局安装通用跨平台bash运行npm install -g anthropic-ai/claude-code # 验证是否安装成功 claude --version方式 3macOS Homebrewbash运行brew tap anthropic/claude brew install claude-code方式 4Windows WinGetpowershellwinget install Anthropic.ClaudeCode