#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! |
This comment has been minimized.
This comment has been minimized.
Line 10: you forgot the "sudo" after && |
This comment has been minimized.
This comment has been minimized.
This is awesome. Thanks alot. |
This comment has been minimized.
This comment has been minimized.
Works fine! Tested on Debian 7.0 x64 in Digital Ocean |
This comment has been minimized.
This comment has been minimized.
You were not lying about that make process. Did this on a raspberry pi and it took about three hours! Hope that info helps someone. EDIT: It wasn't done. We're at 5 hours now. Holy smokes! |
This comment has been minimized.
This comment has been minimized.
{ 'target_defaults': { 'cflags': [], |
This comment has been minimized.
This comment has been minimized.
Works great, it didn't take so long for me, about 20 minutes or so to do the "make" |
This comment has been minimized.
This comment has been minimized.
On a Google Compute Engine n1-standard-1 (1 vCPU, 3.8 GB memory) make took: |
This comment has been minimized.
This comment has been minimized.
How can I upgrade node and npm if I installed from here? It installed me old versions. |
This comment has been minimized.
This comment has been minimized.
Thanks for the doc! I used checkinstall, that way i could remove installed stuff quickly:
|
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
Worked well for me, didn't take to long. Thank you! |
This comment has been minimized.
This comment has been minimized.
It works great. Thank you! |
This comment has been minimized.
This comment has been minimized.
Muy buen aporte, gracias! |
This comment has been minimized.
This comment has been minimized.
I'd add
|
This comment has been minimized.
This make process takes a while. I don't know if it makes any difference, but try using
make -j
(threaded compile). It might ease the pain a little bit.