Skip to content

Instantly share code, notes, and snippets.

@YankeeTube
Created January 5, 2020 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YankeeTube/a77bc0d994d89cf2fffc85f1bfa6bd46 to your computer and use it in GitHub Desktop.
Save YankeeTube/a77bc0d994d89cf2fffc85f1bfa6bd46 to your computer and use it in GitHub Desktop.
양키와 Prisma2 시작하기 #02. NVM으로 ndoejs 설치하기
#!/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
@YankeeTube
Copy link
Author

YankeeTube commented Jan 5, 2020

wget https://raw.githubusercontent.com/YankeeTube/learn-prisma2/master/nvm-install.sh && chmod +x nvm-install.sh && ./nvm-install.sh && source ~/.bashrc && nvm install node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment