Created
April 30, 2012 20:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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! |
how can i find out the stable-version nb. ? i visited the the project-webpage and viewed the changed-log with 'git show'. i'm not sure if this is a recommended way.
Worked well for me, didn't take to long. Thank you!
It works great. Thank you!
Muy buen aporte, gracias!
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
Thanks for the doc! I used checkinstall, that way i could remove installed stuff quickly:
(i did not have tested the remove-procedure)