Installing nodejs from source on Debian

This post is a snip from https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

 

Node.js is available in official repo for Debian Sid(unstable).

For Debian Wheezy, you have two options:

Build from source

sudo apt-get install python g++ make checkinstall
mkdir ~/src && cd $_
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
./configure
sudo checkinstall -y --install=no --pkgversion 0.10.24  # Replace with current version number.
sudo dpkg -i node_*

Uninstall

sudo dpkg -r node
Be Sociable, Share!