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,220 points
4,636 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,320 points

Related Questions In Others

0 votes
0 answers
0 votes
1 answer

Using unserialize in PHP throws the same error repeatedly

I googled 'Node no longer exists', and ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
664 views
0 votes
1 answer

Get files in my own file format for its own dynamic icon

Regarding MAC support, "The Mac and Windows ...READ MORE

answered Jan 8, 2019 in Others by DataKing99
• 8,240 points
494 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,320 points
2,856 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,320 points
154 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,320 points
1,352 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,320 points
1,238 views