Skip to content

Instantly share code, notes, and snippets.

@x-Code-x
Created April 30, 2012 20:52
Show Gist options
  • Save x-Code-x/2562576 to your computer and use it in GitHub Desktop.
Save x-Code-x/2562576 to your computer and use it in GitHub Desktop.
Install npm node.js on Debian Squeeze / Wheezy / Linux Mint Debian Edition
#Quick cp from http://sekati.com/etc/install-nodejs-on-debian-squeeze
#
#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 https://github.com/joyent/node.git
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
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 http://npmjs.org/install.sh | sudo sh
npm -v # it's alive!
@fadlikadn
Copy link

It works great. Thank you!

@tantaroth
Copy link

Muy buen aporte, gracias!

@webhat
Copy link

webhat commented Jul 14, 2017

I'd add --depth 1 to git clone https://github.com/nodejs/node.git so you don't download the whole repo:

git clone --depth 1 https://github.com/nodejs/node.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment