每次我 运行 在 VS Code 中飞镖。它显示了这个。为什么?我该如何解决?

Everytime I Run Dart in VS Code. It Shows This. Why? How can I fix it?

每当我 运行 我的 Dart 代码时,它会向我展示这个东西,持续 1 - 2 分钟,然后它 运行 在我的机器上为我展示,

'git' is not recognized as an internal or external command,
operable program or batch file.
Building flutter tool...
Running pub upgrade...

它占用了我很多时间,你能修复它吗?

系统要求部分将 git 列为先决条件。也许你跳过了它们?

如果你在 Windows:

https://flutter.dev/docs/get-started/install/windows

请仔细阅读,并按部就班执行。

我在安装 dart 后在笔记本电脑上遇到了同样的问题。实际上 flutter 需要 git 所以你必须在 computer/laptop 上安装 git 并需要在安装后重新启动它。

这是 link 为 windows 安装 git