当前位置:   article > 正文

【Flutter 】get-cli init报错处理

【Flutter 】get-cli init报错处理

报错内容

get init 
  • 1

命令跳出,报错内如下

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
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

截图如下
在这里插入图片描述

解决办法:
终端输入:

  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:

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号