Skip to content

Instantly share code, notes, and snippets.

@nash403
Last active May 10, 2017 09:15
Show Gist options
  • Save nash403/8ec95a341b1c605bcc0c26d5cd62c8dc to your computer and use it in GitHub Desktop.
Save nash403/8ec95a341b1c605bcc0c26d5cd62c8dc to your computer and use it in GitHub Desktop.

To completely uninstall node + npm is to do the following:

  • go to /usr/local/lib and delete any node and `node_modules
  • go to /usr/local/include and delete any node and node_modules directory
  • if you installed with brew install node, then run brew uninstall node in your terminal
  • check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
  • go to /usr/local/bin and delete any node executable
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node /opt/local/include/node /opt/local/lib/node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment