Skip to content

Instantly share code, notes, and snippets.

@jalalhejazi
Forked from distracteddev/uninstall.sh
Last active December 17, 2015 00:49
Show Gist options
  • Save jalalhejazi/5524221 to your computer and use it in GitHub Desktop.
Save jalalhejazi/5524221 to your computer and use it in GitHub Desktop.
node: UnInstall node.js on MacOX to clean older version of node..
try to use nodebrew:
nodebrew version Manager>
https://github.com/Jalalhejazi/nodebrew
UnInstall node older versions:
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.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment