Want a faster, leaner alternative to Node.js for your JavaScript or TypeScript projects? Meet Bun, an all-in-one toolkit designed to speed up your development workflows. Here's how to get it up and running on macOS.

Installation via Homebrew

Open Terminal and add the Bun repo to Homebrew:

brew tap oven-sh/bun

Then run:

brew install bun

That's it! Bun is installed. To check if the installation worked correctly, run this command:

bun --version

If you see the version number as the output, that means the installation worked correctly.

Manual Installation

Open Terminal and run:

curl -fsSL https://bun.sh/install | bash

Upgrading Bun

Run this in Terminal:

bun upgrade

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.

Install Bun on macOS: A Quick Guide