Skip to content

Instantly share code, notes, and snippets.

  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Install Node Js and NPM in Ubuntu 13.04
sudo apt-get install build-essential libssl-dev curl
# The install script
# Adapted from
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 | 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
Copy link

Goddard commented May 2, 2013

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

git clone 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