<Marc Qualie/>

Installing NodeJS on Ubuntu 11.10

This is a quick post demonstrating the quickest way to get node.js running on Ubuntu 11.10. I've tested this on both Desktop and Server editions, aswel as 11.04. From my experience, this is the quickest way to guarantee your installation of Node to be a success and no errors will occur, and install all required packages before hand.

Simply put this code into a shell script, and make it executable so you can easily install/update your Node installation from one simple command.

apt-get install -y make git git-core g++ curl libssl-dev apache2-utils python
git clone https://github.com/joyent/node.git && cd node
./configure && make && make install

There you have it. A brand new Installation of Node. You can test that everything is working by checking out the examples in my Introduction to Node.js post. Contact me if you have any feedback, or have an problems getting set up!

Update: I also added a ready made script that I will keep updated with the most current and best way to install Node. Simply run the command below to install.

curl https://www.marcqualie.com/labs/node/install.sh | sh

If you have any questions about this post, or anything else, you can get in touch on Twitter or browse my code on Github.