检查是否已安装
v18,即可跳过本页。
安装 Node.js
- macOS
- Windows
- Linux
node -v 确认安装成功。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 npm 安装 Codex、Gemini CLI 前的 Node.js 环境准备。
node -v
npm -v
v18,即可跳过本页。
sudo:curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# 重新打开终端后执行
nvm install --lts
node -v 确认安装成功。
npm config set registry https://registry.npmmirror.com
npm i -g @openai/codex --registry=https://registry.npmmirror.com
