cmd 在运行 flutter 和 flutter doctor 时关闭。

huangapple go评论66阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年6月19日 14:32:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76504134.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定