[note] Gatsby Usage

安裝 gatsby

1
2
npm install -g gatsby-cli
gatsby --version

Commands (Gatsby CLI)

Theme

gatsby-starter-blog

1
2
3
gatsby new hjl https://github.com/gatsbyjs/gatsby-starter-blog
cd hjl
gatsby develop

http://localhost:8000/


gatsby-starter-julia

1
2
gatsby new RN https://github.com/niklasmtj/gatsby-starter-julia
cd rn

Error

  1. npm WARN old lockfile The package-lock.json file was created with an old version of npm
  2. Error: Command failed with exit code 1: npm install #27548
  3. npm-upgrade
1
--legacy-peer-deps
Author

Hsiang-Jen Li

Posted on

2022-09-02

Updated on

2024-05-19

Licensed under