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
5,884 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,340 points

Related Questions In Others

0 votes
1 answer
0 votes
0 answers
0 votes
1 answer
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,340 points
3,836 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,340 points
196 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,340 points
1,576 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,340 points
1,706 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP