Flutter学习笔记—— 报错No pubspec.yaml file found.

在终端输入flutter packages get  命令

报错

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.

原因是没有到项目目录文件下

CD到项目目录文件下即可正常使用flutter packages get 命令

 

 

你可能感兴趣的:(Flutter学习笔记—— 报错No pubspec.yaml file found.)