2 gatsby
我正在创建一个名为“new-app”的项目。成功安装 gatsby 后,我尝试运行命令“gatsby new my-app”。我总是收到一个错误,其中指出:
从 git 吃新网站时出错: https ://github.com/gatsbyjs/gatsby-starter-default.git
命令失败,退出代码 2 (ENOENT): git clone https://github.com/gatsbyjs/gatsby-starter-default.git my-app --single-branch spawn git ENOENT
错误:命令失败,退出代码 2 (ENOENT): git clone https://github.com/gatsbyjs/gatsby-starter-default.git my-app --single-branch spawn git ENOENT
enoent.js:6 notFoundError [npm]/[gatsby-cli]/[cross-spawn]/lib/enoent.js:6:26
enoent.js:40 verifyENOENT [npm]/[gatsby-cli]/[cross-spawn]/lib/enoent.js:40:16
enoent.js:27 ChildProcess.cp.emit [npm]/[gatsby-cli]/[cross-spawn]/lib/enoent.js:27:25
child_process.js:248 Process.ChildProcess._handle.onexit 内部/child_process.js:248:12
| 归档时间: |
|
| 查看次数: |
5415 次 |
| 最近记录: |