So I recently downloaded flutter on my windows 11 via flutter's website, and added the flutter/bin directory to my path user variable. I then confirmed it when I typed 'where flutter' in my git bash terminal to which it returned its location. However, when I go to type 'flutter' I am returned with:
'where' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.
What's weird is that the error doesn't even refer to flutter and instead refers to 'where' and git --both of which work fine on git bash. Fortunately, flutter works fine on Windows PowerShell. I noticed this problem too when using npx commands on git bash. It wouldn't work on git bash but would work on Windows Powershell. I would highly appreciate it if anyone can help.