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: 
Node is one of the easier projects to build. Just change the version as that continues to change.

Browse to <http://nodejs.org/dist/latest/> to find out the latest package version.

```
cd /usr/local/src
wget http://nodejs.org/dist/latest/node-v7.2.1.tar.gz
tar -xvzf node-v7.2.1.tar.gz
cd node-v7.2.1
./configure
make
sudo make install
which node

```

You should see `/usr/local/bin/node`.
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

```