#I need a way of reinstalling openclaw without loosing anything just reinstall the main files
1 messages ยท Page 1 of 1 (latest)
it's installed globally via npm, the runtime is at /usr/lib/node_modules/openclaw/ and your data is entirely in ~/.openclaw/. They're completely separate.
To reinstall just the main files without touching any of your data:
sudo npm install -g openclaw@latest
That overwrites only the package files in /usr/lib/node_modules/openclaw/. Everything in ~/.openclaw/ - your config, crons, sessions, agents, credentials, memory - is untouched.
If you want to reinstall the current version specifically:
sudo npm install -g openclaw@2026.4.22
Or to force a clean reinstall:
sudo npm uninstall -g openclaw && sudo npm install -g openclaw@latest
The uninstall only removes /usr/lib/node_modules/openclaw/ and the symlink. ~/.openclaw/ is never touched.
What's prompting the reinstall, something specific acting up?
a few things. It cant search online and packages are missing
I'm on windows. Ive already ran the install command to get things to reinstall
so your using WSL?
So I guess I need to uninstall and reinstall