Created — forked from stephou0104/gist:5496788

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Install Node Js and NPM in Ubuntu 13.04

View install-node-npm-ubuntu-raring.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
sudo apt-get install build-essential libssl-dev curl
 
# The install script
# Adapted from https://gist.github.com/579814
 
echo '# Added by install script for node.js and npm in 30s' >> ~/.bashrc
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
echo 'export NODE_PATH=$HOME/local/lib/node_modules' >> ~/.bashrc
. ~/.bashrc
 
mkdir -p ~/local
mkdir -p ~/Downloads/node-latest-install
 
cd ~/Downloads/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
 
./configure --prefix=~/local # if SSL support is not required, use --without-ssl
make install
 
source ~/.bashrc
 
node -v
npm -v
 
#In case of bash: /usr/local/bin/npm: No such file or directory
hash -r
npm -v
Owner
Goddard commented

git clone git://github.com/joyent/node.git
cd node
./configure --prefix=~/local
make install
cd ..

git clone git://github.com/isaacs/npm.git
cd npm
make install # or make link for bleeding edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.