Last active
January 29, 2016 22:35
-
-
Save elmasse/d96dbd94afbc73727498 to your computer and use it in GitHub Desktop.
Uninstall node + npm on Mac OS
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
// delete all files create by node installer | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
// remove folders and bom files | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
// remove user related | |
sudo rm -rf ~/.npm* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment