Installation via Homebrew
Open Terminal and add the Bun repo to Homebrew:
brew tap oven-sh/bun
brew install bun
That's it! Bun is installed. To check if the installation worked correctly, run this command:
If you see the version number as the output, that means the installation worked correctly.
Open Terminal and run:
curl -fsSL https://bun.sh/install | bash
Run this in Terminal:
That's it! You've successfully installed Bun on macOS. Now, enjoy faster startup times, reduced memory usage, and a host of other features designed to make your development experience smoother.