【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 小时前
FlutterPatch:把 Shorebird 热更新的控制面搬回自己服务器
flutter
用户2181697049304 小时前
Flutter tootip 轻量级提示
flutter
用户2181697049305 小时前
Flutter 拖拽 Draggable DragTarget
flutter
yume_sibai5 小时前
05-Flutter实战项目
前端·flutter
传奇开心果编程6 小时前
【Flutter入门练中学】第1课:从零开始
学习·flutter·ui
用户21816970493021 小时前
Flutter ClipPath
flutter
用户2181697049301 天前
Flutter 折叠组件 ExpansionTile ExpansionPanelList
flutter
不羁的木木2 天前
给鸿蒙 App 增加用系统应用打开文件的能力 —— open_app_file 的鸿蒙使用指南
flutter·harmonyos
HouWan2 天前
Flutter: MediaQuery.of(context) 为什么可能拖慢页面?
android·flutter·ios