英文:
cmd closes when i run flutter,flutter doctor
问题
程序 'flutter.bat' 运行失败:系统找不到指定的文件。在第一行:1字符:1处
- flutter doctor v
-
在第一行:1字符:1处
- flutter doctor v
-
- CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
- FullyQualifiedErrorId : NativeCommandFailed
这是在PowerShell中显示的错误,我已经设置了环境变量路径和其他一切。
帮我解决这个问题。
英文:
Program 'flutter.bat' failed to run: The system cannot find the file specifiedAt line:1 char:1
- flutter doctor v
-
At line:1 char:1
- flutter doctor v
-
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed
this is the error showing in the powershell, i have done env path and every thing
help me to solve this problem
答案1
得分: 1
确保将 Flutter 和 Dart 路径正确添加到系统的 PATH 环境变量。
如果是这样,请尝试从 Flutter 安装目录运行命令。我有个朋友曾经遇到过类似的问题,花了两周的时间才发现有防火墙软件在某种程度上阻止了这个执行。
所以也许你需要检查一下你的防病毒/防火墙设置,并为 Flutter 提供特殊配置。
英文:
Ensure that the flutter and dart paths are correctly added to the system's PATH env variable.
if so, try to run commands from the Flutter installation directory
a friend of mine once faces that kind of issue, spent 2weeks then figured out that theres a firewall software blocking (interferring) this execution somehow,
so maybe you gotta check your antivirus/firewall settings and provide excepional configurations for flutter
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论