更新到最新的flutter版本后"2.10.3";flutter pub get给我一个退出错误66。
这是输出:
> 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".)
我正在使用最新的MacbookPro M1 Pro运行蒙特利12.3
我尝试了flutter clean,它只删除缓存的文件,还尝试手动删除/Users/<username>/。发布缓存/
有什么建议吗?有没有办法降级到早期版本的flutter?
您需要确保在运行命令的目录中有一个pubspec.yaml文件。
我意识到我在/opt/中安装了flutter bin,在更新权限变得混乱之后,这就是问题的根源。
我在主文件夹中安装了flutter,现在一切都很好!