After updating to latest flutter version "2.10.3" flutter pub get gives me an exit error 66.
Here is the output:
> flutter pub get
Could not find a file named "pubspec.yaml" in "/opt/flutter/bin/cache/pkg/sky_engine".
Running "flutter pub get" in iot_door_security...
pub get failed (66; Could not find a file named "pubspec.yaml" in "/opt/flutter/bin/cache/pkg/sky_engine".)
I am using the latest MacbookPro M1 Pro running Monterey 12.3
I tried flutter clean, which just removes cached files and also tried manually deleting /Users/<username>/.pub-cache/
Any suggestions? Is there a way to downgrade to a earlier version of flutter?
CodePudding user response:
You need to make sure that there is a pubspec.yaml file in the directory you are running the command from.
CodePudding user response:
I realised I had installed flutter bins in /opt/ which after the update permissions got messy and that's where the problem originated from.
I installed flutter in my home folder, everything is working fine now!