【Flutter 】get-cli init报错处理

56 阅读1分钟

报错内容

get init 

命令跳出,报错内如下

Select which type of project you want to creat
Synchronous waiting using dart:cli waitFor
Unhandled exceotion .
Dart WaitforEvent is deprecated and disabled by default. This feature will be fully
removed in Dart 3.4 release.
I can currently still enable it by passing --enable deprecated wait for to the Dart V. See https://dartbug.com/52121
dart:cli-patch/cli patch.dart 9:47

解决办法:

终端输入:

  1. dart pub global deactivate get_cli
  2. dart pub global activate -s git github.com/knottx/get_… --git-ref knottx