【Flutter 】get-cli init报错处理

报错内容

复制代码
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 https://github.com/knottx/get_cli.git --git-ref knottx

github:
Get_cli errors on the latest version of flutter #243:

相关推荐
火柴就是我1 天前
flutter 之真手势冲突处理
android·flutter
Speed1231 天前
`mockito` 的核心“打桩”规则
flutter·dart
法的空间1 天前
Flutter JsonToDart 支持 JsonSchema
android·flutter·ios
恋猫de小郭1 天前
Android 将强制应用使用主题图标,你怎么看?
android·前端·flutter
玲珑Felone1 天前
从flutter源码看其渲染机制
android·flutter
ALLIN2 天前
Flutter 三种方式实现页面切换后保持原页面状态
flutter
Dabei2 天前
Flutter 国际化
flutter
Dabei2 天前
Flutter MQTT 通信文档
flutter
Dabei2 天前
Flutter 中实现 TCP 通信
flutter
孤鸿玉2 天前
ios flutter_echarts 不在当前屏幕 白屏修复
flutter