Created
October 31, 2016 17:38
-
-
Save ranqiangjun/fa439aaf04d2530af6d337d645020650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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