Skip to content

Instantly share code, notes, and snippets.

@det-peralta
Last active February 18, 2020 16:41
Show Gist options
  • Save det-peralta/3d0442e0cf153b4675b3c1e940b1c6c9 to your computer and use it in GitHub Desktop.
Save det-peralta/3d0442e0cf153b4675b3c1e940b1c6c9 to your computer and use it in GitHub Desktop.
Install Gatsby Ubuntu
#!/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