DOC 01Getting ready
Node.js Installation Guide
Install Node.js on Windows, macOS or Linux, verify npm, and prepare your environment for AI command-line clients.
Install Node.js LTS on Windows, macOS or Linux, then verify that node and npm are available.
Tip
Claude Code, Codex, Gemini CLI and OpenClaw all need Node.js. Complete this guide before setting up those clients. OpenClaw needs Node.js 24.16+ or 26.1+; the current LTS release meets this.
Windows
Option 1: Official installer (recommended)
Visit the Node.js website, download the LTS installer, and follow the prompts.
Option 2: Chocolatey
choco install nodejs-ltsOption 3: Scoop
scoop install nodejs-ltsmacOS
Option 1: Homebrew (recommended)
brew install nodeOption 2: Official installer
Visit the Node.js website and download the macOS installer.
Linux
Ubuntu / Debian
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejsCentOS / RHEL
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
sudo yum install -y nodejsVerify installation
After installation, run the following in your terminal:
node --version
npm --versionIf both commands print a version, Node.js and npm are ready.