Created
December 22, 2013 09:33
-
-
Save kisel/8080258 to your computer and use it in GitHub Desktop.
Installs NodeJS & npm from sources on Ubuntu
This file contains hidden or 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
#!/bin/sh | |
# Installs NodeJS & npm from sources on Ubuntu | |
set -e | |
apt-get install -y build-essential python curl wget | |
cd /tmp | |
wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz | |
tar xvf node-v0.10.24.tar.gz | |
cd node-v0.10.24 | |
./configure | |
make | |
make install | |
# install npm | |
curl https://npmjs.org/install.sh | sh | |
# cleanup | |
apt-get clean | |
rm -r /tmp/node-v0.10.24 | |
rm /tmp/node-v0.10.24.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment