install & Remove nodeJs &npm at Ubuntu

Remove NodeJs & npm

cd /usr/local
sudo rm -r bin/node bin/npm include/node lib/node_modules share/man/man/node.1
cd
rm -r .npm
OR
sudo apt-get remove nodejs
sudo apt-get remove npm

Install Latest Version of NodeJs & npm

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
node --version

No comments:

Post a Comment