[HowTo] Install latest node.js on Ubuntu
Node.js is an implementation of javascript engine which can be run on server side. Here’s the introduction of node.js from the official website:
Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model. This allows Node.js to get excellent performance based on the architectures of many Internet applications.
The nodejs package offered by default Ubuntu PPAs is quite old. To install latest nodejs on Ubuntu, go through the following steps:
Type the following in terminal:
- Add the nodejs repository by Chris Lea:
sudo add-apt-repository ppa:chris-lea/node.js- Update the package index:
sudo apt-get update- Finally, install nodejs:
sudo apt-get install nodejs nodejs-dev
This will install latest nodejs (v0.4.11 at the time of writing this post) on Ubuntu.