Home > Enterprise >  pub run build_runner build has error (66)
pub run build_runner build has error (66)

Time:12-30

hey guys i have error after using command : flutter pub run build_runner build

error message :

C:\Users\matin\AndroidStudioProjects\mosito>flutter pub run build_runner build
Could not find a file named "pubspec.yaml" in "C:\Users\matin\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\async-2.8.1".
pub finished with exit code 66

i try flutter pub upgrade and a lot of things from google but problem not fixed NOTE: im new to flutter i want use this command for making .g.dart file for my models thanks for your attention

CodePudding user response:

I think may be you are not in your project directory. Suppose you have a project name A in myfolder in C drive of your computer. First goto myfolder with terminal. after that try below code to build the project...

flutter packages pub run build_runner build --delete-conflicting-outputs

CodePudding user response:

Turn on Your Terminal and Run

flutter doctor 

if it is showing Could not find "flutter"

Then you need to install flutter Correctly You Can check :

https://docs.flutter.dev/get-started/install/windows

  • Related