Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#Quick cp from
#Needed to install TileMill from MapBox
#Installs node.js which has npm bundled
#Build Dependencies
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev
#Install Node.js & NPM
git clone
cd node
# 'git tag' shows all available versions: select the latest stable.
git checkout v0.7.8
# 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 test
sudo make install
node -v # it's alive!
# Luck us: NPM is packaged with Node.js source so this is now installed too
# curl | sudo sh
npm -v # it's alive!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment