-2
mac@MACs-MacBook-Air ChatApp % flutter pub get
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
mac@MACs-MacBook-Air ChatApp % flutter upgrade
Flutter is already up to date on channel stable
Flutter 2.0.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b1395592de (5 days ago) • 2021-04-01 14:25:01 -0700
Engine • revision 2dce47073a
Tools • Dart 2.12.2
mac@MACs-MacBook-Air ChatApp % flutter clean
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
mac@MACs-MacBook-Air ChatApp % 
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
  • try this : https://stackoverflow.com/questions/50375407/error-no-pubspec-yaml-file-found-when-running-flutter-for-the-first-time – i18 Apr 07 '21 at 04:33

1 Answers1

1

Execute the relevant commands in your project root directory. If you accidentally delete pubspec.yaml, create a new one.

VillainLin
  • 251
  • 1
  • 2
  • 7