Skip to content

Instantly share code, notes, and snippets.

@maxmarinich
Last active February 20, 2020 09:56
Show Gist options
  • Save maxmarinich/00ceae1cb326b3dbbfb9670969b2cd7a to your computer and use it in GitHub Desktop.
Save maxmarinich/00ceae1cb326b3dbbfb9670969b2cd7a to your computer and use it in GitHub Desktop.
Remove Node JS, Find/Remove node_modules
find . -name node_modules -exec rm -rf {} \;
git branch | grep -v "develop" | grep -v "master" | xargs git branch -D
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment