Skip to content

Instantly share code, notes, and snippets.

@qwo
Last active June 15, 2016 21:39
Show Gist options
  • Save qwo/7724448 to your computer and use it in GitHub Desktop.
Save qwo/7724448 to your computer and use it in GitHub Desktop.
Install Node and NPM on Precise 64 12.04 LTS from source. Other uses, use binary
#/usr/bin/sh
#instructions from https://www.digitalocean.com/community/articles/how-to-install-an-upstream-version-of-node-js-on-ubuntu-12-04
sudo apt-get -y update
sudo apt-get -y install build-essential
sudo apt-get -y install curl
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
curl https://npmjs.org/install.sh | sh
node -v
@qwo
Copy link
Author

qwo commented Jan 21, 2014

automatically

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