Skip to content

Instantly share code, notes, and snippets.

@hrdtbs
Last active November 6, 2017 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrdtbs/34c21cc403ffe7bccf25ed395e6a4c1a to your computer and use it in GitHub Desktop.
Save hrdtbs/34c21cc403ffe7bccf25ed395e6a4c1a to your computer and use it in GitHub Desktop.
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.*
sudo rm -rf ~/.npm
curl -L git.io/nodebrew | perl - setup

~/.bashrc

$ export PATH=$HOME/.nodebrew/current/bin:$PATH

Terminal

$ source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment