Here are Steps to Install Gatsby on Ubuntu 18.04 LTS

  • Install Essential packages
sudo apt update
sudo apt install build-essential

  • Install Node.js Stable version
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - 
sudo apt-get install nodejs

  • Verify the Node Installation
node -v
npm -v

  • Install Git
sudo apt install git

  • Install GatsbyJS CLI on ubuntu
npm install --global gatsby-cli

  • Verify the GatsbyJS Installation
gatsby --version

For more About Gatsby Visit the Official Website - gatsbyjs.org