-
-
Save Happy-Ferret/0817cd69352c7ee33721e49294213b06 to your computer and use it in GitHub Desktop.
Install latest version of Node.js in Ubuntu using bash shell script
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="v9" | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/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 |
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="v8" | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/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