-1
I did the installation of Dart + flutter for the first time today, I did the Getting Start oriented configuration of the official website itself, but when giving RUN in the project, this error appears:
No pubspec.yaml file found.
I’ve tried to execute the flutter upgrade
but still did not resolve, no flutter doctor
did not appear problems and is also the latest installed version.
How can I solve?
Check if the directory you are in is the root of the project. For this you can simply open the folder by
explorer
windows or use the commanddir
in the terminal and see the files that are listed. The error you are receiving tells you that you are not at the root of the project.– Leonardo Paim
That’s right @Leonardopaim, I ended up getting confused with the folders and so the mistake. The tip of the list of files in the terminal was important, did not know of this tool. Thank you!
– Bruno Lima
I posted as an answer so that it can be consulted more easily.
– Leonardo Paim