このドキュメントは、Windows での開発に関する情報を提供します。
インストール系の操作は Powershell を管理者権限で実行する前提とします。
https://paso-kake.com/it/windows11/18020/
Chocolatey
は、Windows でのパッケージ管理を簡単にするためのツールです。
Chocolatey Software | Installing Chocolatey
画像の部分のコマンドをコピーします。
コピーしたコマンドを実行して、Chocolatey
をインストールします。
# Example
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install dart-sdk
https://melos.invertase.dev/getting-started#installation
dart pub global activate melos
2023/04/02 現在、fvm
は Chocolatey
経由でインストールすると Dart
のバージョンが古くなってしまいます。
leoafarias/fvm#474
以下の手順でインストールしてください。
https://fvm.app/docs/getting_started/installation
dart pub global activate fvm
dart pub global activate
でインストールしたパッケージをアップグレードする場合は、以下のコマンドを実行してください。
dart pub upgrade
以下のコマンドを実行してください。
powershell -ExecutionPolicy RemoteSigned -File .\tools\bootstrap.ps1