【发布时间】:2023-03-23 23:45:01
【问题描述】:
我是 Flutter 的新手。在 MAC 上安装后,在终端中运行“flutter run”时,出现错误:
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.
谁能帮我解决这个错误??
【问题讨论】:
-
您是从 Flutter 项目的根目录运行的吗?此目录应包含
pubspec.yaml。你检查过那里的文件吗?