Managing Multiple Bun Versions with asdf

Tadashi Shigeoka ·  Sat, December 23, 2023

I’ll introduce how to install and manage multiple versions of Bun using the asdf plugin asdf-bun.

asdf-bun

Background: Bun Version Management with asdf

I needed to install Bun on M1 macOS, and decided to use asdf-bun in anticipation of managing multiple versions.

Prerequisites: Installing asdf

First, complete Installing asdf [M1 macOS Edition].

Installing the asdf-bun Plugin

Install following the instructions at https://github.com/cometkim/asdf-bun.

asdf plugin add bun

List of Bun Versions Available with asdf-bun

asdf list-all bun

Installing Bun with asdf

asdf install bun latest
asdf list bun
  1.0.20

asdf global bun Is Not Available

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 installations

Source: asdf-bun/README.md#L19-L26

That’s all from the Gemba, where I started managing multiple Bun versions with asdf.