AiGoCode Docs

Node.js 环境

安装 Node.js LTS 并验证 node 和 npm 可用

Claude Code、Gemini CLI、Codex 等命令行工具都依赖 Node.js。建议安装 Node.js 20 或更高版本的 LTS。

安装

推荐直接前往 Node.js 官网 下载 LTS 安装包。也可以使用下面的包管理器方式:

Chocolatey
choco install nodejs-lts
Scoop
scoop install nodejs-lts
Homebrew
brew install node
Ubuntu / Debian
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
CentOS / RHEL
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
sudo yum install -y nodejs

验证安装

Terminal
node --version
npm --version

如果能输出版本号,就可以继续配置 Claude CodeCodexGemini CLI

On this page