Last active
February 18, 2020 16:41
-
-
Save det-peralta/3d0442e0cf153b4675b3c1e940b1c6c9 to your computer and use it in GitHub Desktop.
Install Gatsby Ubuntu
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 | |
sudo apt update && | |
sudo apt -y upgrade && | |
#Install curl | |
sudo apt install curl && | |
#Install git | |
sudo apt install git && | |
#Check nvm latest version - https://github.com/nvm-sh/nvm/releases | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/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 | |
#Install nvm version | |
nvm install 10 | |
nvm use 10 | |
#Install gatsby-cli | |
npm install -g gatsby-cli | |
#Check all versions | |
nvm --version | |
node --version | |
gatsby --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment