Updating clawdbot

I have a problem on updating clawdbot.

This is the npm error 16 verbose stack Error: ENOTEMPTY: directory not empty, rename '/Users/rlapuente/.nvm/versions/node/v22.13.1/lib/node_modules/clawdbot' -> '/Users/rlapuente/.nvm/versions/node/v22.13.1/lib/node_modules/.clawdbot-UpJ1U3Ky'

Is it because i tried clawdbot to update itself? is it some problem with my setup?

Are my files saved in .clawdbot? or should i just remove manually clawdbot from node modules??

Is nvm not the recomended way to have node on the machine for clawdbot?
Solution

Fix: Manual Reinstall


# Remove the corrupted installation
rm -rf ~/.nvm/versions/node/v22.13.1/lib/node_modules/clawdbot

# Reinstall
nvm use 22
npm install -g clawdbot

# Verify
clawdbot --version


If the directory rename issue persists, you can also try:
Was this page helpful?