Just after cloning the repo, the very first command I ran gave the following error:
$ dart bin/apigen.dart --discovery-file=urlshortener.json --client-file-name=urlshortener --output- dir=urlshortener
Unhandled exception:
Could not resolve a package location for base at file://.../streamy-dart/bin/apigen.dart
#0 _handlePackagesReply (dart:_builtin:416)
#1 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:150)
Just after cloning the repo, the very first command I ran gave the following error:
Seems similar to this: fails to run after global activation: could not resolve a package location.