Wednesday, December 21, 2016

node js and npm remove and install


Step 1 - Remove nodeJs & npm at Ubuntu 16.04

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

Step 3 - Install Latest Version of NodeJs & npm

update the repository with the apt command:

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

No comments:

Post a Comment