How to install latest stable Node.js on Ubuntu

HowTo, Linux, Programmazione, Ubuntu (EN) Add comments

If you develop with Node.js and you want to be sure to have the latest stable version, luckly there is a PPA for it. All you need is to follow these instructions:

sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm

That's it!


3 Responses to “How to install latest stable Node.js on Ubuntu”

  1. Marya Says:

    Hi, just wanted to comment that for me, the last line resulted in an error:

    The following packages have unmet dependencies:
    nodejs : Conflicts: npm

    When I ran it without the npm, it worked.
    sudo apt-get install nodejs

    And npm was installed together with nodejs automatically.

  2. Chris Moon Says:

    Clean, concise, crisp tutorial! Together with Marya’s comment, it worked like charm. I had to waste several hours following other tutorials while ago. You saved me from hours of agony. Thank you, Andrea!

  3. thustiha Says:

    Hi, thank you for saving my time :)

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in

Switch to our mobile site