Don't use sudo! Using
sudo npm install -g can cause more problems. Use the fix below instead.
✅ The Fix (Mac/Linux)
# Create a folder for global packages
mkdir ~/.npm-global
# Tell npm to use it
npm config set prefix '~/.npm-global'
# Add to your PATH
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# Now install ClawdBot
npm install -g clawdbot
Using zsh? Replace .bashrc with .zshrc
Windows Users
Use WSL2 for best results:
wsl --install
Then run the commands above inside Ubuntu.
Related Problems
Was this helpful?
Thanks for the feedback!