Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep up with the latest versions of Node.js in Ubuntu? PPA? Compiling?

Where can (can I ?) find .deb packages for the latest versions of Node.js ?

If not, and because it's a project that progresses very fast, what is the easiest way to keep up with the releases of Node.js ?

  • Adding some PPA and it will be updated when there's a new package ?
  • ./configure && make && ln -s ./node /usr/bin/node ?
  • Some other way you know and I can't imagine but hopefully you will share ?
like image 945
João Pinto Jerónimo Avatar asked Aug 27 '11 12:08

João Pinto Jerónimo


People also ask

What is the latest version of node js for Ubuntu?

4.0 is the latest version of Node but doesn't currently have LTS - long term support provided for it. To install the latest version of Node with LTS, change 14 in the command above to 12 . You may be prompted to enter the password for your root user. Enter that and hit enter/return.

How do I change node js version in Ubuntu?

You can check your current NodeJS version by using command node -v. And changing your version can be done by using node version manager. The easiest way to do that is by running this $ npm install -g n now you can change your current NodeJS version using n (version) e.g. n 4.0.


2 Answers

Most up-to-date ppa for nodejs https://launchpad.net/~chris-lea/+archive/node.js/

sudo add-apt-repository ppa:chris-lea/node.js   sudo apt-get update   sudo apt-get install nodejs 

NOTE: If your system does not have add-apt-repository, it can be installed like so:

sudo apt-get install python-software-properties 
like image 80
Cris-O Avatar answered Sep 28 '22 20:09

Cris-O


I'm the maintainer of the PPA listed above. I actually maintain three distinct Node PPAs:

https://launchpad.net/~chris-lea/+archive/node.js https://launchpad.net/~chris-lea/+archive/node.js-devel https://launchpad.net/~chris-lea/+archive/node.js-legacy

They contain the current release, the development release, and the "previous stable line" respectively. Here's some more info on using them:

https://chrislea.com/2013/03/15/upgrading-from-node-js-0-8-x-to-0-10-0-from-my-ppa/

I currently intend to keep maintaining these unless the Joyent folks start maintaining their own repositories. They have me on IM so I'm generally quite aware of when new releases are coming out, and I try to put up new builds within a day of the source code being available.

like image 41
Chris Lea Avatar answered Sep 28 '22 22:09

Chris Lea