Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter - running command "flutter _____" instantly closes terminal

Dealing with some significant frustration trying to set up my environment variables just to run Flutter. in my path, I've tried many suggestions to try setting up my Path route so that the Flutter Console (or cmd) can successfully run the command "flutter doctor" just to download all the packages, etc. But the problem is as soon as I run this command, it instantly closes my terminal. There isn't anything happening, the terminal just closes. Any help would be appreciated, and I've attached my screenshots of my Path envs to maybe help out some more. envs

like image 280
Hans R Avatar asked Dec 04 '22 17:12

Hans R


1 Answers

I also get the same problem i.e whenever I hit the flutter doctor command; the terminal instantly closes. Solution : Add the following to the system variable path.

C:\Windows\System32\WindowsPowerShell\v1.0

everything will work fine

like image 106
SUDHANSHU SHARMA Avatar answered Jan 06 '23 15:01

SUDHANSHU SHARMA