If you have lubuntu 16.04 and you already install nodejs on your machine, you will see that the nodejs version is not the latest one. We need to find a way to upgrade nodejs on our lubuntu.
To check your nodejs installation, you can run node -v on the console, this will gives you the information about nodejs version that you have right now. Mine was version 4.2.6, which is not the lastest. I want to upgrade to at least nodejs version 6.
To upgrade nodejs version, we need to have curl installed, so make sure you have that.
sudo apt-get install curl
And then you can upgrade nodejs with one of these command, depending on nodejs version you want to use.
Upgrade to nodejs version 4
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
Upgrade to nodejs version 5
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
Upgrade to nodejs version 6
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Upgrade to nodejs version 7
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
Upgrade to nodejs version 8
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
No comments:
Post a Comment