Skip to content

Instantly share code, notes, and snippets.

@willmendesneto
Last active May 12, 2020 18:20
Show Gist options
  • Save willmendesneto/4c951413bacbb8850837a53bcdada30d to your computer and use it in GitHub Desktop.
Save willmendesneto/4c951413bacbb8850837a53bcdada30d to your computer and use it in GitHub Desktop.
NVM Installation in your local OS
# How to use
# chmod +x ./nvm-install.sh
# ./nvm-install.sh
#
# Author: Wilson Mendes
echo ""
echo ">>> Installing NVM..."
echo ""
cd $HOME
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
echo ""
echo ">>> Installing NodeJS..."
echo ""
nvm install 12.16.2
nvm use 12.16.2
nvm alias default 12.16.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment