Я уже установил дротик на Mac (чип Intel):
$ 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)
теперь я хочу обновить версию дротика до 2.18
, но я не нашел новую версию формулы:
$ brew install [email protected] ‹ruby-2.7.2›
Warning: No available formula with the name "[email protected]". Did you mean [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] or [email protected]?
==> Searching for similarly named formulae...
These similarly named formulae were found:
dart-lang/dart/[email protected] dart-lang/dart/[email protected] dart-lang/dart/[email protected] dart-lang/dart/[email protected] dart-lang/dart/[email protected]
dart-lang/dart/[email protected] dart-lang/dart/[email protected] dart-lang/dart/[email protected] dart-lang/dart/[email protected]
dart-lang/dart/[email protected] dart-lang/dart/[email protected] dart-lang/dart/[email protected] dart-lang/dart/[email protected]
To install one of them, run (for example):
brew install dart-lang/dart/[email protected]
==> 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)
можно ли установить более высокую версию dart в macos, я пытался искать в google, но так и не обнаружил, что никто не говорит об этой проблеме. что мне сделать, чтобы обновить дротик? Я уже пробовал команду brew upgrade.
Вы можете попробовать dart-sdk 2.18.5, который довольно хорошо поддерживается.
У нас нет дротика в доморощенном ядре по причине, описанной в здесь.