Last active
March 6, 2019 08:15
-
-
Save hlaporthein/5d4c9694e5f6ad8c1a630f9be8dd8e7b to your computer and use it in GitHub Desktop.
remove Node & NPM commands
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
| rm -rf ~/.npmrc | |
| rm -rf ~/.npm | |
| rm -rf ~/.node-gyp | |
| rm -rf ~/.node_repl_history | |
| rm -rf ~/node-modules | |
| rm -rf ~/.npm-global | |
| rm -rf ~/.npm | |
| rm -rf ~/.npmrc | |
| rm -rf ~/global-modules | |
| rm -rf ~/npm-global | |
| ###with sudo | |
| rm -rf /usr/local/lib/node | |
| rm -rf /usr/local/lib/node_modules | |
| rm -rf /usr/local/include/node | |
| rm -rf /usr/local/include/node_modules | |
| rm -rf /usr/local/bin/node | |
| rm -rf /usr/local/bin/node-debug | |
| rm -rf /usr/local/bin/node-gyp | |
| rm -rf /usr/local/share/man/man1/node* | |
| rm -rf /usr/local/share/man/man1/npm* | |
| rm -rf /usr/local/lib/dtrace/node.d | |
| rm -rf /opt/local/bin/ | |
| rm -rf /opt/local/include/node | |
| rm -rf /opt/local/lib/node_modules | |
| rm -rf /usr/local/share/doc/ | |
| rm -rf /usr/local/share/systemtap/tapset/node.stp |
Author
Author
//Permission error fixed
sudo chown -R my_user_name /usr/local/lib/node_modules
sudo chown -R my_user_name /usr/local/bin
sudo chown -R my_user_name /usr/local/share
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uninstall through brew
`
brew uninstall node;
or
brew uninstall --force nodewhich removes all versionsbrew cleanup;
`