Created
January 5, 2020 10:43
-
-
Save YankeeTube/a77bc0d994d89cf2fffc85f1bfa6bd46 to your computer and use it in GitHub Desktop.
양키와 Prisma2 시작하기 #02. NVM으로 ndoejs 설치하기
This file contains 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
#!/bin/bash | |
version=$(curl -sS https://github.com/nvm-sh/nvm/tags | grep 'href="/nvm-sh/nvm/releases/tag/' | head -n 1 | grep -oe '[^ /]*$' | grep -oe '[^ \">]*') | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$version/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
Author
YankeeTube
commented
Jan 5, 2020
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment