【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:

相关推荐
顾林海19 分钟前
Flutter容器组件深度解析
android·前端·flutter
xq952724 分钟前
mac os flutter 配置环境变量
flutter
sg_knight4 小时前
Flutter性能优化终极指南:从JIT到AOT的深度调优
前端·flutter·性能优化·web·dart
zonda的地盘6 小时前
[Get 源码] GetPageRoute 与 GetxController 的自动回收机制
flutter
明似水7 小时前
Flutter iOS 项目中 VolumeControllerPlugin 报错解决方案
flutter·ios
折翅鵬7 小时前
Flutter报错:Warning: CocoaPods is installed but broken
flutter·cocoapods
pengyu8 小时前
【Flutter 状态管理 - 壹】 | 提升对声明式编程的认知
android·flutter·dart
zonda的地盘1 天前
Flutter PlatformViewLink vs Texture
flutter
zonda的地盘1 天前
‌AndroidView 配置 TLHC(Texture Layer Hybrid Composition)模式指南
flutter
zonda的地盘1 天前
‌PlatformInterface 的双向通信能力解析
flutter