Skip to content

Instantly share code, notes, and snippets.

@wmfairuz
Created June 10, 2014 07:11
Show Gist options
  • Save wmfairuz/1af0e12f3e591bc394bd to your computer and use it in GitHub Desktop.
Save wmfairuz/1af0e12f3e591bc394bd to your computer and use it in GitHub Desktop.
debian-nodejs.sh
sudo apt-get install python g++ make checkinstall fakeroot
src=$(mktemp -d) && cd $src
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
./configure
sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install
sudo dpkg -i node_*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment