This is an old revision of the document!
Gatsby开发环境需要以下工具:
1. Node.js (v12.13 or newer),其中包括npm包管理工具。
2. Git
3. Gatsby command line interface (CLI) (v3 or newer)
全局安装gatsby命令行工具:
npm install -g gatsby-cli
检查是否正确安装:
gatsby --version
查看帮助:
gatsby --help
4.编辑器,如Visual Studio Code
1. 创建网站,运行gatsby命令行工具:
gatsby new
进入交互模式,创建网站。
2. 编译网站,进入网站目录,运行编译工具:
npm run develop