Skip to content

Instantly share code, notes, and snippets.

@Irvyne
Last active August 29, 2015 14:04
Show Gist options
  • Save Irvyne/d88d021854cf5dddfcb0 to your computer and use it in GitHub Desktop.
Save Irvyne/d88d021854cf5dddfcb0 to your computer and use it in GitHub Desktop.
# Installing/Updating NodeJS
aptitude install checkinstall
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
fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install
dpkg -i node_*
# Installing/Updating NPM
curl -L https://www.npmjs.org/install.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment