Last active
June 15, 2016 21:39
-
-
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
This file contains 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
#/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
automatically