Closed arjundevlucid closed 2 years ago
Same issue. But I run on the flutter 2.10.5 What happened?
Same here
Flutter 3.0.2
just
find the version_update.dart file in your path
below is my pub-cache path.
vim .pub-cache/hosted/pub.dartlang.org/get_cli-1.7.1/lib/functions/version/version_update.dart
and add null check then the problem will be fixed.
before
final v1 = Version.parse(versionInPubDev);
after
final v1 = Version.parse(versionInPubDev!);
But I still can't understand what there happened.
use this
dart pub global activate --source git https://github.com/Shreemanarjun/get_cli
The core problem is in version
dependency, it made a breaking change in one of their latest patch version 2.0.1
It should be fixed now. Just make sure your get_cli
downloads the 2.0.3
version of version
dependency.