Created
December 23, 2016 17:19
-
-
Save maxsummers/1b2af77401de9dc6775ec6d42e26ca9a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
NODE_VERSION="v7" | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash | |
. $HOME/.nvm/nvm.sh | |
cd "$NVM_DIR" && git pull origin master && git checkout `git describe --abbrev=0 --tags` | |
. $HOME/.nvm/nvm.sh | |
nvm install $NODE_VERSION | |
nvm use $NODE_VERSION | |
nvm alias default $NODE_VERSION | |
exec $SHELL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment