Node.js
OpenClaw requires Node 22 or newer. 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
v22.x.x or higher, you’re good. If Node isn’t installed or the version is too old, pick an install method below.
Install Node
- macOS
- Linux
- Windows
Using a version manager (nvm, fnm, mise, asdf)
Using a version manager (nvm, fnm, mise, asdf)
Troubleshooting
openclaw: command not found
This almost always means npm’s global bin directory isn’t on your PATH.
Check if it's on your PATH
<npm-prefix>/bin (macOS/Linux) or <npm-prefix> (Windows) in the output.Permission errors on npm install -g (Linux)
If you see EACCES errors, switch npm’s global prefix to a user-writable directory:
export PATH=... line to your ~/.bashrc or ~/.zshrc to make it permanent.