如何将dart升级到更高版本2.14+

sbtkgmzw  于 2022-12-06  发布在  其他
关注(0)|答案(1)|浏览(773)

我已经在mac中安装了dart(英特尔芯片):

$ brew info dart                                                                                                                            ‹ruby-2.7.2›
dart-lang/dart/dart: stable 2.14.4, HEAD
SDK
https://dart.dev
Conflicts with:
  dart-beta (because dart-beta ships the same binaries)
/usr/local/Cellar/dart/HEAD (868 files, 506.2MB) *
  Built from source on 2022-09-04 at 22:53:21
/usr/local/Cellar/dart/2.14.4 (822 files, 543.3MB)
  Built from source on 2022-08-20 at 18:17:47
/usr/local/Cellar/dart/2.18 (918 files, 677.8MB)
  Built from source
From: https://github.com/dart-lang/homebrew-dart/blob/HEAD/Formula/dart.rb
==> Options
--HEAD
    Install HEAD version
==> Caveats
Please note the path to the Dart SDK:
  /usr/local/opt/dart/libexec
(base)

现在我想把dart版本升级到2.18,但是我没有找到新版本的公式:

$ brew install dart@2.18                                                                                                                    ‹ruby-2.7.2›
Warning: No available formula with the name "dart@2.18". Did you mean dart@2.1, dart@2.8, dart@2.13, dart@2.12, dart@2.10, dart@2.2, dart@2.7, dart@2.6, dart@2.5, dart@2.4, dart@2.3, dart@2.9 or dart@2.0?
==> Searching for similarly named formulae...
These similarly named formulae were found:
dart-lang/dart/dart@2.1        dart-lang/dart/dart@2.12       dart-lang/dart/dart@2.7        dart-lang/dart/dart@2.4        dart-lang/dart/dart@2.0
dart-lang/dart/dart@2.8        dart-lang/dart/dart@2.10       dart-lang/dart/dart@2.6        dart-lang/dart/dart@2.3
dart-lang/dart/dart@2.13       dart-lang/dart/dart@2.2        dart-lang/dart/dart@2.5        dart-lang/dart/dart@2.9
To install one of them, run (for example):
  brew install dart-lang/dart/dart@2.1
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
(base)

在macos中安装更高版本的dart是可能的吗?我试着在谷歌上搜索,但仍然没有人谈论这个问题。我应该怎么做来升级dart?我已经尝试了brew升级命令。

m1m5dgzv

m1m5dgzv1#

您可以尝试使用dart-sdk 2.18.5,它维护得非常好。
我们没有 dart 在自制的核心,由于在这里详细说明的原因。

相关问题