Skip to content

Instantly share code, notes, and snippets.

@amolk
Created May 10, 2012 01:07
Show Gist options
  • Save amolk/2650214 to your computer and use it in GitHub Desktop.
Save amolk/2650214 to your computer and use it in GitHub Desktop.
Install latest node.js on Ubuntu 10.x
echo "Install basics" && \
sudo apt-get install build-essential libssl-dev curl git-core && \
echo "Install node.js" && \
bash < <(curl http://h3manth.com/njs) && \
echo 'export PATH=$HOME/local/bin/:$PATH' >> ~/.bashrc && \
source ~/.bashrc && \
echo "Install npm" && \
git clone git://github.com/isaacs/npm.git && \
cd npm && \
make install && \
echo "Verify installation" && \
node -v && \
npm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment