Skip to content

Instantly share code, notes, and snippets.

@stanzheng
Last active Jun 15, 2016
Embed
What would you like to do?
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
@stanzheng

This comment has been minimized.

Copy link
Owner Author

@stanzheng stanzheng commented Jan 21, 2014

automatically

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