Last active
May 12, 2020 18:20
-
-
Save willmendesneto/4c951413bacbb8850837a53bcdada30d to your computer and use it in GitHub Desktop.
NVM Installation in your local OS
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
# 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