美文网首页
执行 flutter doct 命令报错解决方案

执行 flutter doct 命令报错解决方案

作者: 90后的晨仔 | 来源:发表于2020-06-23 10:38 被阅读0次

Error: The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
to set up Flutter, run the following command:
git clone -b beta https://github.com/flutter/flutter.git

解决方法

  • 1.使用快捷键 command + shift +G,然后输入~打开flutter配置文件所在的文件夹

    Snip20200623_2.png
  • 2.例如我本地的文件夹如下图


    Snip20200623_1.png
    1. 打开终端cd到具体文件夹下边


      Snip20200623_3.png
    1. 执行命令 git clone -b beta https://github.com/flutter/flutter.git就好了。

相关文章

网友评论

      本文标题:执行 flutter doct 命令报错解决方案

      本文链接:https://www.haomeiwen.com/subject/mfpcfktx.html