Created
November 18, 2019 14:33
-
-
Save linuxfemale/25d9c1a0f5d352d4efa6441095b61dcc to your computer and use it in GitHub Desktop.
remove complete node js and npm from Ubuntu 18.04 LTS
This file contains 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
node -v | |
nvm -version | |
npm -v | |
#I run followingh commands: | |
' | |
sudo apt-get remove nodejs | |
sudo apt-get purge nodejs | |
sudo apt autoremove | |
sudo apt-get remove npm | |
sudo apt-get update | |
sudo rm -rfv /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 | |
sudo rm -rfv /usr/local/lib/node* | |
sudo rm -rfv /usr/local/include/node* | |
sudo rm -rfv /usr/local/bin/node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment