David King

full stack developer

All Blog Articles

Prev « Dad's Cart! Next » Hello world... of node.js


How to install node.js on Linux

31 Dec 2011

How to install node.js on Debian-based Linux distros (Debian, Ubuntu, Mint etc)

1 - Install the dependencies (chances are you've already got most of these)

sudo apt-get install g++ curl libssl-dev apache2-utils

2 - Then install git (you may already have that too)

sudo apt-get install git-core

3 - Clone the node git repo...

git clone git://github.com/ry/node.git

4 - Then install

cd node
./configure
make
sudo make install

The terminal output will show whether everything went OK, but if you want to be sure

man node

Badabing

Next up: Hello world… of node.js

Right then, time to go to a New-Years-Eve party :-)


Prev « Dad's Cart! Next » Hello world... of node.js