Bun has its own installer and has frequent updates. I just set it according to FHS.

Before that, make sure unzip installed.

sudo pacman -S unzip

Then install Bun:

curl -fsSL https://bun.com/install | BUN_INSTALL="$HOME/.local/share/bun" bash