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 9 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 , , ,

9 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

  5. This didnt work for me since there was no configure file in node-v0.8.15-linux-x64.tar.gz

    Easy way to install in Ubuntu :


    7 Dec 12 at 3:18 am

  6. nice tutorial.
    i used the

    for installing via ubuntu apt.

    insane how simple it is.


    12 Dec 12 at 2:42 am

  7. Remember to access as administrator before doing ‘apt-get update’ !


    20 Feb 13 at 8:53 am

  8. Is this actually supposed to take less than five minutes?

    The “make” for node took about twenty minutes. I’m wondering if my Ubuntu guest in VirtualBox is running slower than it should be (my hardware is fast).


    24 Dec 13 at 1:53 am

  9. Nice blog. Was facing issues in installing express. Following mentoined steps made it easy to install it. :)


    7 Apr 14 at 5:30 am

Leave a Reply