Question: How do I install the latest [node.js](https://nodejs.org) on Ubuntu? I've been looking around, and I can't find anything. Is there a Ubuntu package for `node.js`, or do I have to compile it myself?

Answer: 
As this question has the word latest and NodeJS latest release version is now `v0.12.2` (as of today) and if you want to install this version you need to run following command 

```
# Note the new setup script name for Node.js v0.12
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -

# Then install with:
sudo apt-get install -y nodejs

```

**Update**

NodeJS released `v5.8.0` and I still found no `ppa` to install yet. So I install it using [NVM](https://github.com/creationix/nvm) as follows

First install `nvm`

```
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash

```

Then install NodeJS v5.8.0 

```
nvm install v5.8.0

```

**Update 2:**
For those who prefer **PPA** 

```
https://github.com/nodesource/distributions#debinstall

```
I am always leery of using a non-official PPA - it usually works out, but I like there to be some level of official association between the distribution channel and the project that I am using...

Personally, this is the best bang for my buck when it comes to a resource for the many good ways to install Node - <https://gist.github.com/isaacs/579814>