Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save markstachowski/16517d96a85f648e35c93376e51a3a7e to your computer and use it in GitHub Desktop.
Save markstachowski/16517d96a85f648e35c93376e51a3a7e to your computer and use it in GitHub Desktop.
sudo npm uninstall npm -g
brew uninstall node

Then

sudo rm -rf /usr/local/lib/dtrace/node.d /usr/local/lib/node_modules /usr/local/bin/npm /usr/local/bin/nodemon /usr/local/bin/node /usr/local/include/node ~/.npm* ~/.node* /usr/local/share/man/*/node* /usr/local/share/man/*/npm*

Which removes the following

  • /usr/local/lib/dtrace/node.d
  • /usr/local/lib/node_modules
  • /usr/local/bin/npm
  • /usr/local/bin/nodemon
  • /usr/local/bin/node
  • /usr/local/include/node
  • ~/.npm*
  • ~/.node*
  • /usr/local/share/man/*/node*
  • /usr/local/share/man/*/npm*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment