Closed8
M2Macにfvmを入れる
個人PCを新調したので入れ直し
環境
- M2 Macbook Air
- OS12.5
以前入れていたのでさほど心配はしてない
なるべく公式サイトの手順に沿って入れる。今回はhomebrew経由
$ brew tap leoafarias/fvm
brew install fvm
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
Running `brew update --auto-update`...
==> Tapping leoafarias/fvm
Cloning into '/opt/homebrew/Library/Taps/leoafarias/homebrew-fvm'...
remote: Enumerating objects: 188, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 188 (delta 2), reused 6 (delta 2), pack-reused 182
Receiving objects: 100% (188/188), 21.75 KiB | 3.11 MiB/s, done.
Resolving deltas: 100% (110/110), done.
Tapped 4 formulae (17 files, 39.8KB).
==> Tapping dart-lang/dart
Cloning into '/opt/homebrew/Library/Taps/dart-lang/homebrew-dart'...
remote: Enumerating objects: 2926, done.
remote: Counting objects: 100% (680/680), done.
remote: Compressing objects: 100% (245/245), done.
remote: Total 2926 (delta 594), reused 475 (delta 434), pack-reused 2246
Receiving objects: 100% (2926/2926), 538.11 KiB | 5.49 MiB/s, done.
Resolving deltas: 100% (1870/1870), done.
Tapped 18 formulae (47 files, 690.3KB).
==> Downloading https://storage.googleapis.com/dart-archive/channels/stable/release/2.17.6/sdk/dartsdk-macos-arm64-release.zip
######################################################################## 100.0%
==> Downloading https://github.com/fluttertools/fvm/archive/2.4.1.tar.gz
==> Downloading from https://codeload.github.com/fluttertools/fvm/tar.gz/refs/tags/2.4.1
######################################################################## 100.0%
==> Installing fvm from leoafarias/fvm
==> Installing dependencies for leoafarias/fvm/fvm: dart-lang/dart/dart
==> Installing leoafarias/fvm/fvm dependency: dart-lang/dart/dart
🍺 /opt/homebrew/Cellar/dart/2.17.6: 918 files, 482.9MB, built in 5 seconds
==> Installing leoafarias/fvm/fvm
==> /opt/homebrew/opt/dart/libexec/bin/dart pub get
==> /opt/homebrew/opt/dart/libexec/bin/dart compile exe -Dversion=2.4.1 bin/main.dart -o fvm
🍺 /opt/homebrew/Cellar/fvm/2.4.1: 6 files, 6.6MB, built in 10 seconds
==> Running `brew cleanup fvm`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
ログ
何事もなく導入できた
コマンド
fvmってインストールしてないバージョンを使おうとするとインストールも一緒にできるのね。便利ー
$ fvm global 3.0.5
Flutter "3.0.5" is not installed.
Would you like to install it? Y/n: Y
$ fvm flutter --version
Flutter 3.0.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f1875d570e (4 weeks ago) • 2022-07-13 11:24:16 -0700
Engine • revision e85ea0e79c
Tools • Dart 2.17.6 • DevTools 2.12.2
done
このスクラップは2022/08/08にクローズされました