Daily Archives: January 6, 2014

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*
sudo checkinstall -y --install=no --pkgversion 0.10.24  # Replace with current version number.
sudo dpkg -i node_*


sudo dpkg -r node