Flutter - 运行命令"flutter _____"立即关闭终端 [英] Flutter - running command "flutter _____" instantly closes terminal

查看:24
本文介绍了Flutter - 运行命令"flutter _____"立即关闭终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试设置环境变量以运行 Flutter 时遇到了一些重大挫折.在我的路径中,我尝试了很多建议来尝试设置我的路径路由,以便 Flutter 控制台(或 cmd)可以成功运行命令flutter doctor";只是为了下载所有软件包等.但问题是一旦我运行这个命令,它就会立即关闭我的终端.什么都没发生,终端就关闭了.任何帮助将不胜感激,我附上了我的路径环境的屏幕截图,也许可以帮助更多.环境

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

推荐答案

我也遇到同样的问题,即每当我点击 flutter doctor 命令;终端立即关闭.解决方案:将以下内容添加到系统变量路径中.

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

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

一切正常

这篇关于Flutter - 运行命令"flutter _____"立即关闭终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆