Skip to content

Instantly share code, notes, and snippets.

@OrganicPanda
Created September 17, 2016 09:45
Show Gist options
  • Save OrganicPanda/d76ea0da74c53abc081e31b0fc7ed40e to your computer and use it in GitHub Desktop.
Save OrganicPanda/d76ea0da74c53abc081e31b0fc7ed40e to your computer and use it in GitHub Desktop.
#!/bin/bash
brew uninstall node
brew prune
sudo rm -rf $HOME/{local,lib,include,node*,npm,.npm*}
sudo rm -rf /usr/local/lib/node*
sudo rm -rf /usr/local/include/node*
sudo rm -rf /usr/local/bin/{node,npm}
sudo rm -rf /usr/local/share/man/man1/node.1
sudo rm -rf /usr/local/lib/dtrace/node.d
brew install node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment