【问题标题】:Flutter Error: Unable to find git in you path - Have added all the env variablesFlutter 错误:无法在您的路径中找到 git - 已添加所有 env 变量
【发布时间】:2021-02-08 22:27:58
【问题描述】:

在 Windows 10 上运行命令颤振或颤振医生。 我得到错误:无法在您的路径中找到 git

git 已安装

C:\Users\drake>git --version
git version 2.12.2.windows.2

我已经尝试了所有问题和 GitHub 讨论,甚至多次重新启动系统,但问题仍然存在。

我已经在系统甚至用户变量中添加了环境变量,与下面的屏幕截图相同,保持其他答案建议的顺序。

请帮忙。提前致谢

【问题讨论】:

  • git 安装在哪里?
  • @EncryptedWatermelon C:\Users\drake>其中 git C:\Program Files\Git\bin\git.exe C:\Program Files\Git\cmd\git.exe

标签: windows git flutter environment-variables flutter-dependencies


【解决方案1】:

C:\Program Files\Git\bin\git.exe 不应该在 PATH 中。 C:\Program Files\Git\bin应该。

【讨论】:

    猜你喜欢
    • 2020-07-30
    • 2020-09-19
    • 2021-11-09
    • 2019-03-28
    • 2018-01-12
    • 2021-10-01
    • 1970-01-01
    • 2020-07-28
    • 2021-04-17
    相关资源
    最近更新 更多