Comprehensive troubleshooting guide for OpenClaw installation issues. Find solutions to common errors including Node.js version problems, npm permissions, port conflicts, API connection issues, and platform-specific problems.
Most OpenClaw install problems fall into these categories. Find your error below for quick solutions.
OpenClaw requires Node.js 22 or newer. Update your Node.js installation:
brew install node@22
brew link --force --overwrite node@22
nvm install 22
nvm use 22
nvm alias default 22
Download Node.js 22+ installer from nodejs.org and run the setup wizard.
Verify installation:
node --version
Should output: v22.x.x or higher
This occurs when npm doesn't have permission to install global packages. Three solutions:
sudo npm install -g openclaw@latest
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g openclaw@latest
Install Node.js via nvm to avoid permission issues:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 22
npm install -g openclaw@latest
Right-click PowerShell and select "Run as Administrator", then install OpenClaw.
Another process is using OpenClaw's default port (18789). Find and kill the process:
# Find process using port 18789
lsof -ti:18789
# Kill the process
lsof -ti:18789 | xargs kill -9
# Find process ID
netstat -ano | findstr :18789
# Kill process (replace <PID> with actual PID)
taskkill /PID <PID> /F
openclaw config set port 8080
openclaw start
Corrupted installation or missing dependencies. Reinstall OpenClaw:
npm uninstall -g openclaw
npm cache clean --force
npm install -g openclaw@latest
This clears npm cache and reinstalls OpenClaw fresh.
sk-ant-)openclaw config set apiKey YOUR_CLAUDE_API_KEY
openclaw restart
Ollama service is not running. Start Ollama:
# Install Ollama if not installed
curl -fsSL https://ollama.ai/install.sh | sh
# Start Ollama service
ollama serve
# In another terminal, launch OpenClaw
ollama launch openclaw
Error: xcode-select: error: tool requires Xcode
Solution:
xcode-select --install
Solution: Install Rosetta 2 if needed:
softwareupdate --install-rosetta
Full guide: macOS Install Guide
Error: make: command not found
Solution: Install build essentials:
# Ubuntu/Debian
sudo apt-get install build-essential
# Fedora
sudo dnf groupinstall 'Development Tools'
# Arch
sudo pacman -S base-devel
Solution:
sudo apt-get install python3
Full guide: Linux Install Guide
Error: cannot be loaded because running scripts is disabled
Solution:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Solution:
npm install -g windows-build-tools
Full guide: Windows Install Guide
CVSS Score: 8.8 (High)
Affected Versions: All versions before 2026.1.29
Issue: Cross-site WebSocket hijacking allows one-click remote code execution
Update to version 2026.1.29 or newer immediately:
npm update -g openclaw@latest
openclaw --version
Verify you're on v2026.2.6 or newer (current latest: v2026.2.6, released Feb 7, 2026)
341 malicious skills identified on ClawHub repository. Some facilitate data exfiltration.
Common causes:
Solution:
openclaw restartSolution:
openclaw config set telegram.token YOUR_TOKENSolution:
openclaw platform restart whatsappIf you can't find a solution above, get help from the OpenClaw community and official support channels.
Join the official Discord server for real-time help from community members and contributors.
Report bugs, request features, or search existing issues for solutions.
Comprehensive documentation covering installation, configuration, and troubleshooting.
Follow updates and connect with other OpenClaw users on X/Twitter.
Include these details to get faster, more accurate help:
openclaw --versionnode --version~/.openclaw/logs/