I have installed nodeJS on Ubuntu with following code
sudo apt-get install nodejs
Since I am a new user for ubuntu I also ran this code too
sudo apt-get install npm
Now when I type
nodejs --version
It shows
v0.6.19
I checked and saw latest nodeJS version is 0.10.26
How can I update my version of nodeJS to 0.10.26
?
I tried with
sudo apt-get install <packagename>
sudo apt-get install --only-upgrade <packagename>
but no luck.