In my last article I installed Node on Ubuntu 10.10. Nothing really has changed for Ubuntu 11.04 but I want to have a separate article since a lot of people hit my installing Node articles. Also, keep in mind you can customize your Node installation using these gists – just make sure to read all the comments on the bottom of that page for any changes as I know at least one path was wrong in one of the examples.
[ad name=”Google Adsense”]
Assuming a clean install of Ubuntu 11.04 with all the current updates, here are the commands you need to install the latest version of Node on Ubuntu 11.04:
$ sudo apt-get update $ sudo apt-get install git-core curl build-essential openssl libssl-dev $ git clone https://github.com/joyent/node.git && cd node $ ./configure $ make $ sudo make install $ node -v $ curl http://npmjs.org/install.sh | sudo sh $ npm -v
Something to keep in mind if you want to run a specific version of Node you can use Nave. The code above right now installed Node v0.5.0-pre and NPM v1.0.10 and it is not meant for a production release.