I was running Claude Code on Windows with WSL and adding
flutter(){
command CMD.exe /c flutter $@
}
to my ~/.bashrc
file seemed like it fixed the issue.
However, when Claude tried to call "flutter analyze"
, it gave me the exact error.
I prompted it to use
CMD.exe /c "flutter analyze"
and it works OK now.