Skip to content

Instantly share code, notes, and snippets.

@linuxfemale
Created November 18, 2019 14:33
Show Gist options
  • Save linuxfemale/25d9c1a0f5d352d4efa6441095b61dcc to your computer and use it in GitHub Desktop.
Save linuxfemale/25d9c1a0f5d352d4efa6441095b61dcc to your computer and use it in GitHub Desktop.
remove complete node js and npm from Ubuntu 18.04 LTS
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