mise
Windows非対応 (macOS / Linux)
asdfがbashに依存するためか、Windowsではasdf由来のリポジトリが使えない。現在asdf非依存のリポジトリ (vfox, aqua, ubi) への対応と移行が少しずつ進んでいる
macOS に入れたら以下の表示
code:log
$ /Users/qser/.local/bin/mise activate fish | source
mise missing: node@18.15.0 ruby@2.7.5 deno@1.31.0 zig@0.10.0 python@3.10.10 go@1.20.3 php@8.2.5
大体 asdf で今入れてるやつ
code:log
$ mise current
mise node@18.15.0 is specified in ~/.tool-versions, but not installed
node 18.15.0
mise ruby@2.7.5 is specified in ~/.tool-versions, but not installed
ruby 2.7.5
mise deno@1.31.0 is specified in ~/.tool-versions, but not installed
deno 1.31.0
mise zig@0.10.0 is specified in ~/.tool-versions, but not installed
zig 0.10.0
mise python@3.10.10 is specified in ~/.tool-versions, but not installed
python 3.10.10
mise go@1.20.3 is specified in ~/.tool-versions, but not installed
go 1.20.3
mise php@8.2.5 is specified in ~/.tool-versions, but not installed
php 8.2.5
asdf のバージョン設定かな
とりあえず移そう
code:sh
asdf list <plugin>
asdf uninstall <plugin> <version>
asdf plugin remove <plugin>
mise use -g <plugin>
コマンド体型が分かりやすい
mise use [-g] だけ覚えとけば大体なんとかなる
あと mise -p ls-remote でデフォルトで使えるプラグインの一覧を確認 (下記リンクでもいい)
asdf install php ではビルドが要る (いろいろなパッケージを brew で入れる必要がありかなりつらかった) けど、これは mise でも要りそう
の php が asdf-plugin へのリンクになっている。マジか php は諦めて Dev Container 使おう
ruby は公式サポートだけど ruby-build 使用
Volta より最近にリリース (2020 vs 2023) Volta の代わりに使ってよさそう
set -gx MISE_NODE_COREPACK true (fish), export MISE_NODE_COREPACK=true (bash/zsh) しておくと yarn/pnpm も勝手に入る (初回コマンド実行時に corepack によってDLされる)
2025-03-24: かんたん移行
code:sh
mkdir -p ~/.config/mise
vim ~/.config/mise/config.toml # 以下を書き込む
code:~/.config/mise/config.toml
java = "temurin-21"
fd = "latest"
node = "22"
github-cli = "latest"
ripgrep = "latest"
rclone = "latest"
rust = "latest"
go = "latest"
jq = "latest"
awscli = "latest"
python = "latest"
code:sh
# config.toml の内容が反映されていることを確認
mise ls
# まとめてインストール
mise i
cargoパッケージ(?)のインストールに使う場合
事前に mise use -g carbo-binstall しておく (binaryダウンロードになり速く、後始末もシンプルになる)