Skip to content

Instantly share code, notes, and snippets.

@aronbudinszky
Forked from clemherreman/install.sh
Last active December 19, 2015 04:59
Show Gist options
  • Save aronbudinszky/5901414 to your computer and use it in GitHub Desktop.
Save aronbudinszky/5901414 to your computer and use it in GitHub Desktop.
Installing Node.js on Debian.
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
# 'git tag' shows all available versions: select the latest stable.
git checkout enter-a-version
# Configure seems not to find libssl by default so we give it an explicit pointer.
# Optionally: you can isolate node by adding --prefix=/opt/node
./configure --openssl-libpath=/usr/lib/ssl
make
make test
sudo make install
/usr/local/bin/node -v # it's alive!
# Luck us: NPM is packaged with Node.js source so this is now installed too
# curl http://npmjs.org/install.sh | sudo sh
/usr/local/bin/npm -v # it's alive!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment