Common Error Quick Reference
command not found- Command not found → Restart terminal or reinstallThe term 'openclaw' is not recognized- Command not recognized (Windows) → Check PATH environment variableEACCES: permission denied- Permission denied → Configure npm-global directoryENOENT: no such file or directory- File or directory not found → Check if path is correct
What This Error Means
When you type openclaw and see this message:
openclaw: command not found
Or on Windows:
openclaw : The term 'openclaw' is not recognized
It means your computer cannot find the OpenClaw program. Do not worry - this is one of the most common problems and is usually easy to fix.
Try This First
Close your terminal (Ubuntu, PowerShell, or Terminal app) completely and open it again. Then type openclaw --version and press Enter. If it works now, you are done! If not, keep reading.
Why Does This Happen?
Think of your computer like a big library. When you type openclaw, your computer needs to know which "shelf" to look on to find the program. The list of shelves your computer checks is called the PATH.
This error happens when:
- OpenClaw did not install properly - The download or installation failed
- Your computer does not know where to look - OpenClaw is installed, but not in a location your computer checks
- You need to restart - Your computer needs to refresh its list of programs
Which Computer Are You Using?
Find your situation below and follow those steps:
Fix for Windows with Ubuntu (WSL2)
If you followed our Windows installation guide and are using the Ubuntu app, follow these steps:
Close and reopen Ubuntu
Sometimes the fix is this simple:
- In the Ubuntu window, type
exitand press Enter - Wait a few seconds
- Open Ubuntu again from the Start menu
- Type
openclaw --versionand press Enter
Did it work? If yes, you are done! If not, continue to the next step.
Try reinstalling OpenClaw
Let us install OpenClaw again. Type this command and press Enter:
curl -fsSL https://openclaw.ai/install.sh | bash
What Does This Do?
This downloads the OpenClaw installer from the internet and runs it. It is safe and will replace any broken installation.
After it finishes, close Ubuntu (type exit) and open it again. Then try:
openclaw --version
Expected Result
openclaw/1.x.x
Tell your computer where to find OpenClaw
If reinstalling did not work, we need to tell your computer where OpenClaw is located.
Copy and paste this entire command (all three lines together) and press Enter:
mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc
What Do These Commands Do?
- Line 1: Creates a folder called
.npm-globalin your home directory - Line 2: Tells npm (the package manager) to install programs there
- Line 3: Tells your computer to look in that folder for programs
Now reload your settings:
source ~/.bashrc
Reinstall OpenClaw:
npm install -g openclaw@latest
Test if it works:
openclaw --version
Expected Result
openclaw/1.x.x
Fix for Windows PowerShell (Not Recommended)
Consider Using WSL2 Instead
OpenClaw works much better with WSL2/Ubuntu than with native Windows. If you have not tried WSL2 yet, we recommend following our Windows installation guide instead.
If you must use PowerShell directly:
Find where npm puts programs
Open PowerShell and type:
npm config get prefix
You will see something like:
Expected Result
C:\Users\YourName\AppData\Roaming\npm
Write down or copy this path - you will need it in the next step.
Add that location to your PATH
Now we need to tell Windows to look in that folder. This involves changing a Windows setting:
- Press the Windows key and R at the same time
- Type
sysdm.cpland press Enter - A "System Properties" window will open
- Click the Advanced tab at the top
- Click the Environment Variables button near the bottom
- In the top section ("User variables"), find Path and click on it
- Click Edit
- Click New
- Paste the path you copied earlier (like
C:\Users\YourName\AppData\Roaming\npm) - Click OK on all windows to save
Restart PowerShell and test
Important: You must close ALL PowerShell windows and open a new one. The old windows will not have the updated settings.
In the new PowerShell window:
openclaw --version
Fix for macOS
Close and reopen Terminal
- Close the Terminal app completely (Command + Q)
- Open Terminal again
- Type
openclaw --versionand press Enter
If it works, you are done!
Reinstall OpenClaw
Type this command and press Enter:
curl -fsSL https://openclaw.ai/install.sh | bash
Close Terminal and open it again. Then test:
openclaw --version
Update your shell settings
If reinstalling did not work, we need to update your settings. Most modern Macs use zsh (the default shell).
Type this command and press Enter:
echo 'export PATH="$HOME/.openclaw/bin:$HOME/.npm-global/bin:$PATH"' >> ~/.zshrc
Reload your settings:
source ~/.zshrc
Test again:
openclaw --version
Using an Older Mac?
If your Mac is from before 2019, you might be using bash instead of zsh. In that case, replace ~/.zshrc with ~/.bash_profile in the commands above.
Fix for Linux
Close and reopen your terminal
Close your terminal window and open a new one. Then type:
openclaw --version
If it works, you are done!
Reinstall OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
Close and reopen your terminal, then test again.
Update your PATH settings
Type these commands one at a time:
mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Reinstall OpenClaw:
npm install -g openclaw@latest
Test:
openclaw --version
Still Not Working?
If none of the above solutions worked, try this complete reset:
Remove any existing OpenClaw installation
npm uninstall -g openclaw
This removes OpenClaw completely.
Clear the npm cache
npm cache clean --force
This clears any corrupted download files.
Install OpenClaw fresh
npm install -g openclaw@latest
Restart your terminal and test
Close your terminal completely and open a new one. Then:
openclaw --version
How to Prevent This Problem in the Future
Remember These Tips
Following these practices will help you avoid this problem next time.
-
Always restart your terminal after installing programs - Many programs require a terminal restart before they can be found
-
Use the same terminal consistently - If you install something in Ubuntu, use Ubuntu to run it. If you install in PowerShell, use PowerShell.
-
Keep your installation notes - Write down what commands you ran during installation so you can repeat them if needed
What To Do Next
Once openclaw --version shows a version number, your installation is working! You can now:
- Run the setup wizard - Configure OpenClaw for first use
- Connect to Telegram - Set up your first chat channel
- Connect to WhatsApp - Use OpenClaw with WhatsApp
Still Having Trouble?
If you have tried everything and it still does not work, check the official OpenClaw documentation or contact us for help.
Last updated: February 2, 2026 | Found an error? Contact us