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

Windows非管理员账户下FVM/Flutter无法找到Git,管理员账户可正常运行的问题求助

Windows非管理员账户下FVM/Flutter无法找到Git,管理员账户可正常运行的问题求助

大家好,我遇到了一个挺奇怪的问题,想请各位帮忙分析下:

当我用管理员账户操作FVM时,一切都正常。执行命令 fvm flutter --version 能顺利输出Flutter的版本信息:

PS C:\WINDOWS\system32> fvm flutter --version

Flutter 3.7.5 • channel stable • https://github.com/flutter/flutter.git

Framework • revision c07f788888 (3 days ago) • 2023-02-22 17:52:33 -0600

Engine • revision 0f359063c4

Tools • Dart 2.19.2 • DevTools 2.20.1

但切换到自己的普通用户账户后,同样执行 fvm flutter --version 就报错了,提示找不到Git:

C:\Users\saxto>fvm flutter --version

Error: Unable to find git in your PATH.

可明明Git已经在我的用户PATH里了,执行 where.exe git 能正常定位到Git的安装路径:

C:\Users\saxto>where.exe git

C:\Program Files\Git\cmd\git.exe

有没有朋友碰到过类似的情况?或者知道这是什么原因导致的,该怎么解决呢?

备注:内容来源于stack exchange,提问作者wsaxton

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.23 12:39:07