Node.js

OpenClaw requires Node.js 24.16.0+ on the 24.x line, or 26.1.0+ with a WAL-reset-safe linked SQLite library. Node 26 is the recommended runtime — the Gateway starts noticeably faster and uses less memory than Node 24. The installer provisions Node 26 on macOS and the supported Node 24 LTS line on Linux when Node is missing. Node 22, 23, and 25 are unsupported; use 24.22.1+/26.12.1+ for the security fixes (releases below those patch levels still run, with warnings during updates and security audits). Requirements checked against the official install docs on 2026-11-05. The installer script will detect and install Node automatically — this page is for when you want to set up Node yourself and make sure everything is wired up correctly (versions, PATH, global installs).

Check your version

node -v

If this prints v26.12.1+ (recommended) or v24.22.1+ (the 24.x LTS line), you’re good; compatible 24.16.0+/26.1.0+ releases also run. If Node isn’t installed or the version is too old, pick an install method below.

Install Node

macOS

Homebrew (recommended):

brew install node

Or download the macOS installer from nodejs.org.

Linux

Ubuntu / Debian:

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

Fedora / RHEL:

sudo dnf install nodejs

Or use a version manager (see below).

Windows

winget (recommended):

winget install OpenJS.NodeJS.LTS

Chocolatey:

choco install nodejs-lts

Or download the Windows installer from nodejs.org.

Using a version manager (nvm, fnm, mise, asdf)

Version managers let you switch between Node versions easily. Popular options:

  • fnm — fast, cross-platform
  • nvm — widely used on macOS/Linux
  • mise — polyglot (Node, Python, Ruby, etc.)

Example with fnm:

fnm install 26
fnm use 26

Warning: Make sure your version manager is initialized in your shell startup file (~/.zshrc or ~/.bashrc). If it isn’t, openclaw may not be found in new terminal sessions because the PATH won’t include Node’s bin directory.

Troubleshooting

openclaw: command not found

This almost always means npm’s global bin directory isn’t on your PATH.

Find your global npm prefix

npm prefix -g

Check if it’s on your PATH

echo "$PATH"

Look for <npm-prefix>/bin (macOS/Linux) or <npm-prefix> (Windows) in the output.

Add it to your shell startup file

macOS / Linux

Add to ~/.zshrc or ~/.bashrc:

export PATH="$(npm prefix -g)/bin:$PATH"

Then open a new terminal (or run rehash in zsh / hash -r in bash).

Windows

Add the output of npm prefix -g to your system PATH via Settings → System → Environment Variables.

Permission errors on npm install -g (Linux)

If you see EACCES errors, switch npm’s global prefix to a user-writable directory:

mkdir -p "$HOME/.npm-global"
npm config set prefix "$HOME/.npm-global"
export PATH="$HOME/.npm-global/bin:$PATH"

Add the export PATH=... line to your ~/.bashrc or ~/.zshrc to make it permanent.