I created a new user on my windows PC and can't get flutter to work on it.
Flutter and git are both installed in a shared folder (like C:\shared_programs\...
).
I made sure that both users have full access in the security properties of that folder.
I added all these to the System Path Variable:
C:\shared_programs\flutter\bin
C:\Windows\System32
C:\shared_programs\Git\cmd
When I run where git
or where flutter
, the correct paths are printed.
But when I run flutter
, it returns "Error: Unable to find git in your PATH."
Why? How do I fix this?
(I think this question is not a duplicate because this question was fixed by adding something to the path which I already did, and this question is about the where
command not working, which isn't my problem. And this one also doesn't work for me.)
CodePudding user response:
I had a similar problem and your post incited me to investigate it further.
Fvm had installed flutter 3.7.0 through cmd. Using cmd I could also successfully run git rev-parse HEAD
in the flutter sdk folder.
It seems however that executing the same command through powershell didn't work (and IntelliJ uses powershell for me).
By calling the following command in powershell this fixed it for me: git config --global --add safe.directory C:/path_to_fvm_home/versions/3.7.0