简体   繁体   English

macOS Sierra上的Flutter Doctor Git问题

[英]flutter doctor git issue on macOS sierra

I download flutter dev 0.5.7 on macOS high Sierra and update my path and now can't run flutter doctor I am getting Error: 我在macOS high Sierra上下载了flutter dev 0.5.7并更新了我的路径,现在无法运行flutter doctor我得到了错误:

The Flutter directory is not a clone of the GitHub project. Flutter目录不是GitHub项目的克隆。 The flutter tool requires Git in order to operate properly; 颤振工具需要Git才能正常运行; to set up Flutter, run the following command: git clone -b beta https://github.com/flutter/flutter.git 要设置Flutter,请运行以下命令:git clone -b beta https://github.com/flutter/flutter.git

It's either missing git tool which you can download from here . 可能缺少git工具,您可以从此处下载。 Or the flutter directory doesn't contain ".git" folder. 或flutter目录不包含“ .git”文件夹。 This folder is hidden and you may not see it. 此文件夹是隐藏的,您可能看不到它。

To fix this issue, you should remove flutter completely and install it again. 要解决此问题,您应完全清除颤振并重新安装。

Note: Problem is solved in comments. 注意:问题已在注释中解决。 Updating post for other users. 正在为其他用户更新帖子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM