安装 Gatsby CLI. npm install -g gatsby-cli 创建站点 gatsby new gatsby-site 切换到站点目录 cd gatsby-site 加参数 npm install --ignore-scripts 启动开发服务器 gatsby develop 构建生产版本 gatsby build 在本地启动生产版本服务器 gatsby serve