- Install the Gatsby CLI
npm install -g gatsby-cli
- Install and switch to the correct version of Node using NVM
nvm install
- Install dependencies
yarn install
- Start the development server
yarn start
In addition to the development server started with yarn start
, you can also generate a full static production build and serve that to preview the site as it will appear once deployed:
yarn build
yarn serve