Skip to content

Instantly share code, notes, and snippets.

@MrityunjaiKumar
Created October 22, 2016 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrityunjaiKumar/fbcabea40b34dbadd31bacb245cee79a to your computer and use it in GitHub Desktop.
Save MrityunjaiKumar/fbcabea40b34dbadd31bacb245cee79a to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get install -y build-essential g++ curl libssl-dev apache2-utils git libxml2-dev &&
apt-get remove nodejs &&
git clone git://github.com/creationix/nvm.git ~/nvm &&
echo '. ~/nvm/nvm.sh' >> ~/.bashrc && . ~/.bashrc &&
nvm install v4.1.0 &&
nvm use v4.1.0 &&
node -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment