Skip to content

Instantly share code, notes, and snippets.

@danclegg
danclegg / gist:caaccfdcf8ec63ef98faa1c49c4c6917
Last active October 12, 2016 14:26 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
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.*
# One way to completely uninstall node + npm is to do the following:
# Go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*