install Gatsby CLI - more info
npm install -g gatsby-cli
or
yarn global add gatsby-cli
install dependencies:
npm install
or
yarn install
start the development server:
gatsby develop
At the project root, compile your application for deployment:
gatsby build
Clean the cache to fix certain errors - run the clean command before starting the dev server:
gatsby clean
At the project root, serve the production build of your site:
gatsby serve