Skip to content

Instantly share code, notes, and snippets.

@ranqiangjun
Created October 31, 2016 17:38
Show Gist options
  • Save ranqiangjun/fa439aaf04d2530af6d337d645020650 to your computer and use it in GitHub Desktop.
Save ranqiangjun/fa439aaf04d2530af6d337d645020650 to your computer and use it in GitHub Desktop.
#!/bin/bash
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.node.pkg.bom \
| while read i; do
sudo rm /usr/local/${i}
done
sudo rm -rf /usr/local/lib/node \
/usr/local/lib/node_modules \
/var/db/receipts/org.nodejs.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment