Check your version
v24.15.0 or newer 24.x is the recommended default. v22.22.3 or newer 22.x is the supported Node 22 LTS path; Node v25.9.0+ is also supported. Node 23 is unsupported. If Node is missing or outside the supported range, 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.
1
Find your global npm prefix
2
Check if it's on your PATH
<npm-prefix>/bin (macOS/Linux) or <npm-prefix> (Windows) in the output.3
Add it to your shell startup file
- macOS / Linux
- Windows
Add to Then open a new terminal (or run
~/.zshrc or ~/.bashrc:rehash in zsh / hash -r in bash).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.
Related
- Install Overview - all installation methods
- Updating - keeping OpenClaw up to date
- Getting Started - first steps after install