flutter packages pub run json_model 报错

981

Unhandled exception: RangeError: Value not in range: -1 #0 _StringBase.substring (dart:core-patch/string_patch.dart:399:7) #1 _parsePackageLocations (package:build_runner_core/src/package_graph/package_graph.dart:162:21) #2 new PackageGraph.forPath (package:build_runner_core/src/package_graph/package_graph.dart:67:30) #3 new PackageGraph.forThisPackage (package:build_runner_core/src/package_graph/package_graph.dart:98:57) #4 new BuildCommandRunner (package:build_runner/src/entrypoint/runner.dart:27:37) #5 run (file:///Users/coderiding/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-0.0.2/bin/build_runner.dart:25:23) #6 main (file:///Users/coderiding/flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-0.0.2/bin/json_model.dart:19:5) #7 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:281:32) #8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

想安装这个包,最后使用的时候,就报上面的错误,不知道什么原因