Skip to content

Instantly share code, notes, and snippets.

@EspadaV8
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EspadaV8/92da73456d090a669533 to your computer and use it in GitHub Desktop.
Save EspadaV8/92da73456d090a669533 to your computer and use it in GitHub Desktop.
Install lastest node on debian
#!/bin/sh
aptitude install checkinstall build-essential
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz
cd `ls -1|sort -r|head -1`
./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