Skip to content

Instantly share code, notes, and snippets.

@SirmaXX
Last active January 6, 2022 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirmaXX/b0f418c9da1f1772552a3679419ff901 to your computer and use it in GitHub Desktop.
Save SirmaXX/b0f418c9da1f1772552a3679419ff901 to your computer and use it in GitHub Desktop.
remove all components of nodejs and node.js and installation
#author:SirmaXX
#date :20/02/2020
#removing
sudo apt-get upgrade
sudo apt-get update
sudo npm uninstall npm -g
cd /usr/local/bin
sudo rm -rf /usr/local/bin/npm
sudo rm -rf /usr/local/bin/node
sudo apt-get autoremove
sudo apt-get purge --auto-remove nodejs
#installation
sudo apt install npm nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment