Node.js 0.12 update (Ubuntu)

February 9, 2015 28.2k views

How i can update node.js to v0.12?
I tried run "apt-get install node", but installed v0.10.33
Also i tried to update from PPA repo (https://launchpad.net/~onestone/+archive/ubuntu/node.js-0.12) but this package is missing.

Ubuntu 10.04 x32

4 Answers

I'm not aware of any Debian packages targeting 10.04 for Node 0.12. While 10.04 has security support until April 2015, there have been two more Long Term Support releases in the meantime. With Node being a fairly fast moving community, legacy support is not always there.

Your best bet is probably to use Node Version Manager instead of a packaged version.

curl https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
source ~/.bashrc
nvm install 0.12
sudo sed -i 's/node /node012 /g;' /etc/apt/sources.list.d/nodesource.list

from github.com/nodesource/distributions/issues/63

Also see the answer by Luke on the SO posting. Luke talks about downloading the latest version directly from the nodejs.org web site.

Have another answer? Share your knowledge.