Skip to content

Instantly share code, notes, and snippets.

@kisel
Created December 22, 2013 09:33
Show Gist options
  • Save kisel/8080258 to your computer and use it in GitHub Desktop.
Save kisel/8080258 to your computer and use it in GitHub Desktop.
Installs NodeJS & npm from sources on Ubuntu
#!/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