Error No pubspec yaml file found

0 votes

Hi Guys,

I am trying to run the flutter run command, but it is showing me the below error.

C:\Users\Nadeem Akhter\Desktop\vscode>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.

How can I solve this error?

Jul 20, 2020 in Others by akhtar
• 38,240 points
6,977 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to run this command from your project folder. Flutter run command internally finds the main.dart file to run. This file is located inside your project folder like project_folder/lib/main.dart.

answered Jul 20, 2020 by MD
• 95,380 points

Related Questions In Others

0 votes
1 answer
0 votes
0 answers
0 votes
1 answer

The uploaded file exceeds the upload_max_filesize directive in php.ini error while uploading plugin

After looking at your ERROR, it seems ...READ MORE

answered Feb 8 in Others by Soham
• 9,670 points
137 views
0 votes
1 answer

How to launch an emulators from Flutter?

Hi@akhtar, Before launching emulators you should check if ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,380 points
4,634 views
0 votes
1 answer

How to create a Map in Dart Language?

Hi@akhtar, You need to create one variable and ...READ MORE

answered Jul 23, 2020 in Others by MD
• 95,380 points
296 views
0 votes
1 answer

Error waiting for a debug connection: The log reader stopped unexpectedly

Hi@akhtar, You need to add textDirection in your ...READ MORE

answered Jul 23, 2020 in Others by MD
• 95,380 points
1,712 views
0 votes
1 answer

What is pubspec.yaml file in Flutter?

Hi@akhtar, It is the project's configuration file that ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,380 points
2,204 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP