Created
May 10, 2012 01:07
-
-
Save amolk/2650214 to your computer and use it in GitHub Desktop.
Install latest node.js on Ubuntu 10.x
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
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