I have been working on flutter using VScode with all environment variables set on Windows OS. Now i upgraded the flutter using "flutter upgrade" in Git Bash terminal of VScode to the stable version and now i am not able to use flutter commands in Git Bash terminal of VScode. I wonder where things could have gone wrong , how do i fix it ?
I re-verified that all my environment variables are set correctly according to official documentation. Also flutter commands are running perfectly through flutter console .
Ashish@DESKTOP-3JFCI3M MINGW64 ~/Desktop/Flutter Exercise/test_2
$ flutter doctor
bash: flutter: command not found
Edit: Made changes to the "~/.bash_profile" as mentioned by Sam , still getting the same error . Also i re-checked and the environment variables are set there already. Any ideas what i could do further to fix it ? Thanks in Advance :)
Also when executed command of step no 3. source ~/.bash_profile
, output is
$ source ~/.bash_profile
bash: C:DEVLOPMENTflutterbin: command not found
bash: C:DEVLOPMENTflutterbincachedart-sdkbin: command not found```
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…