Created
February 26, 2025 17:11
-
-
Save jeyaramashok/df77406a00d60705fa5c727b82f36b3e to your computer and use it in GitHub Desktop.
uninstall node.js on macos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf \ | |
/usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} | |
sudo rm -rf \ | |
/usr/local/bin/npm \ | |
/usr/local/share/man/man1/node* \ | |
/usr/local/lib/dtrace/node.d \ | |
~/.npm \ | |
~/.node-gyp | |
sudo rm -rf /opt/local/bin/node /opt/local/include/node /opt/local/lib/node_modules | |
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node.1 /usr/local/lib/dtrace/node.d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source: https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x