Codex Linux 使用指南 (一) 安装 Node.js 环境 Codex 需要 Node.js 环境才能运行(版本要求 ≥18)。 Linux 安装方法 方法一:使用官方仓库(推荐) bash # 添加 NodeSource 仓库 curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - # 安装 Node.js sudo apt-get install -y nodejs 方法二:使用系统包管理器 虽然版本可能不是最新的,但对于基本使用已经足够: bash # Ubuntu/Debian sudo apt update sudo apt install nodejs npm # CentOS/RHEL/Fedora sudo dnf install nodejs npm Linux 注意事项 某些发行……

阅读全文