安装Node macOS 用户

1
2
3
4
sudo xcode-select --install # 安装 Xcode 命令行工具
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # 安装 Homebrew
brew install node
node --version

18版本以上即可

安装 Claude Code

1
npm install -g @anthropic-ai/claude-code

验证是否成功

1
claude --version

大功告成 启动!

1
2
claude