Guys anyone know why every time that i update openclaw i have to reinstall it again, because when i want to use a comand in the terminal i cant and the error that pop is this Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/vboxuser/.nvm/versions/node/v22.22.1/lib/node_modules/openclaw/dist/session-archive.runtime-CKbsM1dE.js' imported from /home/vboxuser/.nvm/versions/node/v22.22.1/lib/node_modules/openclaw/dist/reply-CxEVitwF.js
i dont know hot to fix it
#Openclaw update error
1 messages · Page 1 of 1 (latest)
That error usually means the global package got into a partial update state (one built dist/*.js chunk is missing), not your config.
Most reliable fix on nvm/Linux is:
# 1) stay on one Node version
nvm use 22
# 2) clean reinstall global package
pnpm remove -g openclaw
pnpm store prune
pnpm add -g openclaw@latest
# 3) refresh shell command cache + verify
hash -r
openclaw --version
openclaw doctor
openclaw gateway restart
If you don’t have pnpm, use npm for the reinstall step instead:
npm uninstall -g openclaw
npm install -g openclaw@latest
Also important so it stops happening:
- Don’t mix install methods back and forth (stick to one flow).
- Don’t use
sudowith nvm installs. - Keep a stable default Node version (
nvm alias default 22). - Prefer
openclaw updatefor normal upgrades.