Skip to content

Instantly share code, notes, and snippets.

View Payuing's full-sized avatar
🤣
Woof Woof

Payuing Payuing

🤣
Woof Woof
View GitHub Profile
@Payuing
Payuing / gist:dbe69f6cd47df0b05610d102ae18d960
Created December 12, 2016 08:15 — 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.*
# To recap, the best way (I've found) 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*