I’ll introduce how to install and manage multiple versions of Bun using the asdf plugin asdf-bun.
I needed to install Bun on M1 macOS, and decided to use asdf-bun in anticipation of managing multiple versions.
First, complete Installing asdf [M1 macOS Edition].
Install following the instructions at https://github.com/cometkim/asdf-bun.
asdf plugin add bun
asdf list-all bun
asdf install bun latest
asdf list bun
1.0.20
It seems that asdf global bun is not available, so if you want to use Bun globally, please check the configuration method from the source link below.
TL;DR: Don't use Bun for global installationsSource: asdf-bun/README.md#L19-L26
That’s all from the Gemba, where I started managing multiple Bun versions with asdf.