找不到名称为"version"的命令.-颤振 [英] Could not find a command named "version" - Flutter

查看:70
本文介绍了找不到名称为"version"的命令.-颤振的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图像往常一样直接使用命令行获取Flutter的所有版本,但是它不再起作用了.

I am trying to get all versions of Flutter using command line directly -as always- but it is not working anymore.

命令:

flutter version

结果:

Could not find a command named "version".

Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.

除了打开网站,还有其他选择吗?

Is there any alternative for it rather than opening the website?

推荐答案

正如我在Flutter 1.22.4上安装的 flutter版本所述:

As the flutter version on my Flutter 1.22.4 installation says:

[!] The "version" command is deprecated and will be removed in a future version of
Flutter. See https://flutter.dev/docs/development/tools/sdk/releases for previous
releases of Flutter.

此处是删除了此不推荐使用的命令的Pull Request.此处是相应的问题.

Here is the Pull Request that removed this deprecated command. Here is the corresponding issue.

这篇关于找不到名称为"version"的命令.-颤振的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆