spiderai
Log inGet an API key

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

CMD / PowerShell
choco install nodejs-lts

Option 3: Scoop

CMD / PowerShell
scoop install nodejs-lts

macOS

Option 1: Homebrew (recommended)

BASH
brew install node

Option 2: Official installer

Visit the Node.js website and download the macOS installer.

Linux

Ubuntu / Debian

BASH
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

CentOS / RHEL

BASH
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
sudo yum install -y nodejs

Verify installation

After installation, run the following in your terminal:

TERMINAL
node --version
npm --version

If both commands print a version, Node.js and npm are ready.

Next steps