Skip to content

Instantly share code, notes, and snippets.

@gonzaloserrano
Created July 7, 2013 20:58
Show Gist options
  • Save gonzaloserrano/5944925 to your computer and use it in GitHub Desktop.
Save gonzaloserrano/5944925 to your computer and use it in GitHub Desktop.
Remove node installed from dmg
#! /bin/bash
# needed this to install it from homebrew formula like http://madebyhoundstooth.com/blog/install-node-with-homebrew-on-os-x/
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read i; do
sudo rm /usr/local/${i}
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