Rss Feed Tweeter button Facebook button Technorati button Reddit button Linkedin button Webonews button Delicious button Digg button Flickr button Stumbleupon button Newsvine button

A Waage Blog

Ruby, Rails, Life

How to install Node.js on Ubuntu – in under 5 minutes

with 4 comments

Follow along, as we create our first Node.js app using the “express” framework in under 5 minutes!
Note: We’re on Ubuntu 10.04 LTS (as root!)

# Update the system and install some necessary packages

$ apt-get update
$ apt-get install g++ curl libssl-dev apache2-utils
$ apt-get install git-core

# Find the latest package to install at (example uses 0.6.11)

$ wget
$ tar xzf node-v0.6.11.tar.gz
$ cd node-v0.6.11
$ ./configure
$ make
$ make install

# Install npm (Node.js package manager)

$ cd /usr/local/src
$ git clone
$ cd npm/
$ make install

# Install express framework, -g flag installs the express executable globally

$ npm install -g express

# Create an app with the express framework

$ express /var/www/foo
$ cd /var/www/foo/

# Install dependencies

$ npm install -d

# Start the node app!

$ node app.js

Voila! I told you it was fast :)

Written by Andrew Waage

February 23rd, 2012 at 10:35 pm

Posted in Node.js

Tagged with , , ,

4 Responses to 'How to install Node.js on Ubuntu – in under 5 minutes'

Subscribe to comments with RSS or TrackBack to 'How to install Node.js on Ubuntu – in under 5 minutes'.

  1. hey thanks for this blog post. It really saved me some time. I only came to one hurdle that was not mentioned.
    I had to run an apt-get install node and nodejs to install npm and move forward.

    I really appreciate this.


    20 Jul 12 at 10:38 pm

  2. Thank you for the concise and well written instructions.

    Will Kitchen

    23 Jul 12 at 10:03 am

  3. Really appreciated!!!


    30 Jul 12 at 2:13 am

  4. Hola, me sirvió demasiado tu post, te lo agradezco mucho

    Thank you very much.


    22 Oct 12 at 5:51 pm

Leave a Reply