install dependencies:
$ yarn
develop:
$ yarn start // aka `gatsby develop`
build:
$ yarn build // aka `gatsby build`
$ yarn serve // aka `gatsby serve`
when install npm, use yarn add
instead of npm install
.
if it have some wierd problems when running gatsby develop
or gatsby build
, try run gatsby clean
(it will delete .cache
and public
folders) then do it again.