Created
January 11, 2016 23:15
-
-
Save christophior/e2395c2751c4d7ff580f to your computer and use it in GitHub Desktop.
Remove everything to do with node and npm on a mac
This file contains hidden or 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
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# download new version of node from https://nodejs.org/en/download/releases/ and install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment