Remove node from Mac
To completely uninstall the node executable as well as npm, here are some instructions on what to do: Note that not all of the directories listed here may exist on your system depending on your install method.
- Delete
nodeand/ornode_modulesfrom/usr/local/lib - Delete
nodeand/ornode_modulesfrom/usr/local/include - Delete
node,node-debug, andnode-gypfrom/usr/local/bin - Delete
.npmrcfrom your home directory (these are your npm settings, don't delete this if you plan on re-installing Node right away) - Delete
.npmfrom your home directory - Delete
.node-gypfrom your home directory - Delete
.node_repl_historyfrom your home directory - Delete
node*from/usr/local/share/man/man1/ - Delete
npm*from/usr/local/share/man/man1/ - Delete
node.dfrom/usr/local/lib/dtrace/ - Delete
nodefrom/opt/local/bin/ - Delete
nodefrom/opt/local/include/ - Delete
node_modulesfrom/opt/local/lib/ - Delete
nodefrom/usr/local/share/doc/ - Delete
node.stpfrom/usr/local/share/systemtap/tapset/
This list should include just about all the references to Node on your system.