Question

Node.js 0.12 update (Ubuntu)

Posted February 9, 2015 34k 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

3 comments

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.
http://unix.stackexchange.com/questions/207591/how-to-install-latest-nodejs-on-debian-jessie

Submit an Answer