macOS Sierra上的Flutter Doctor Git问题

时间:2018-08-11 12:30:04

标签: git macos flutter

我在macOS high Sierra上下载了flutter dev 0.5.7 并更新我的路径,现在无法运行Flutter Doctor我得到错误:

  

Fltter目录不是GitHub项目的克隆。   颤振工具需要Git才能正常运行;   要设置Flutter,请运行以下命令:   git clone -b beta https://github.com/flutter/flutter.git

1 个答案:

答案 0 :(得分:0)

它缺少git工具,可以下载from here。或flutter目录不包含“ .git”文件夹。此文件夹是隐藏的,您可能看不到。

要解决此问题,您应彻底清除颤振并重新安装。

注意:问题已在注释中解决。更新其他用户的帖子。