Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (17 sloc) 507 Bytes
#!/usr/bin/env bash
#Install nvm, it handles all the installation for us
git clone git:// ~/.nvm
. ~/.nvm/
#install nodejs
nvm sync
time nvm install latest
nvm use latest
#setup the nodejs user's enviroment to have that latest nodejs in it's path
echo -e -n "\n. ~/.nvm/\n" >> ~/.bashrc
echo -e -n "\nnvm use latest\n" >> ~/.bashrc
#Setup npm, this makes life much easier:
mkdir ~/git
cd ~/git
git clone
cd npm/
make install