You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows下Flutter非管理员模式报错“Unable to find git in your PATH”求助

解决Windows下普通用户运行flutter doctor提示"Unable to find git in your PATH"的问题

我已经解决了这个问题,特在此分享以帮助更多用户。

问题描述

在Windows系统安装Flutter后,以普通用户身份运行flutter doctor时会报错Unable to find git in your PATH,但以管理员身份运行则无此问题。

复现步骤

  • 遵循Windows系统Flutter安装的所有步骤,提前安装Git;
  • 确保普通用户身份在PowerShell中可正常运行git,若不可行则将C:\Program Files\Git\cmd(或对应路径)添加至Windows环境变量PATH;
  • 以普通/非管理员身份打开PowerShell,执行flutter doctor -v,会触发错误:Error: Unable to find git in your PATH;
  • 以管理员身份重复上述操作,此时可正常运行。

内容的提问来源于stack exchange,提问作者Badrul

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 22:59:55