nick.tdr
nick.tdr

Reputation: 4933

Flutter doctor is not running in command prompt

I have been using flutter smoothly before this but suddenly when I run flutter doctor in my command prompt I get the following error.

Updating flutter tool... Could not find a file named "pubspec.yaml" in "C:\Users\personal\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\linter-0.1.43". Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...

I have also uninstalled the flutter and dart plugin from the android studio but it didn't help.

Upvotes: 0

Views: 1924

Answers (1)

nick.tdr
nick.tdr

Reputation: 4933

I deleted the cache folder in the following location.

C:\Users\personal\AppData\Roaming\Pub\Cache\

Now my flutter doctor is working again.

Upvotes: 1

Related Questions