运行命令“ gatsby new gatsby-site”时出现git clone错误-命令失败,退出代码为1(EPERM):

时间:2019-10-09 09:01:43

标签: git github terminal gatsby

我正在尝试启动一个新的gatsby项目。运行命令“ gatsby new [我的项目名称]”时,出现错误。

  

Tomers-MBP:个人项目tomermatmon $ gatsby new haifa-dev   信息从git创建新站点:https://github.com/gatsbyjs/gatsby-starter-default.git   xcrun:错误:无效的活动开发人员路径(/ Library / Developer / CommandLineTools),缺少xcrun,位于:/ Library / Developer / CommandLineTools / usr / bin / xcrun

错误

  

命令失败,退出代码为1(EPERM):git clone https://github.com/gatsbyjs/gatsby-starter-default.git haifa-dev --single-branch

     

错误:命令失败,退出代码为1(EPERM):git clone https://github.com/gatsbyjs/gatsby -starter-default.git haifa-dev --single-branch

     
      
  • error.js:58 makeError   [lib] / [gatsby-cli] / [execa] /lib/error.js:58:11

  •   
  • index.js:112 handlePromise   [lib] / [gatsby-cli] / [execa] /index.js:112:26

  •   
  • next_tick.js:68进程._tickCallback   内部/进程/next_tick.js:68:7

  •   

1 个答案:

答案 0 :(得分:0)

听起来像您的Mac上未安装xcode cli工具。有时也发生在软件更新之后。

尝试运行xcode-select --install

相关问题