Master Bun: Fast JS Runtime & Toolkit in 5 Steps

Master Bun: Fast JS Runtime & Toolkit in 5 Steps

🧰

Instant Toolkit

2 artifacts

📋
Step-by-Step Guide

1

Install Bun

Bun is a single executable. Use the official script:

macOS/Linux:

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

Add to PATH if needed:

echo 'export BUN_INSTALL="$HOME/.bun"' >> ~/.zshrc
echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Windows:

powershell -c "irm bun.sh/install.ps1|iex"

Verify:

bun --version
bun --revision
```<citation data-ids="76,75"></citation>
Why this step matters:
  • -Establishes the foundation for running Bun scripts and tools
  • -Enables instant access to runtime, bundler, and package manager
15-30 minutes
Terminal/PowerShell, Text Editor, curl (macOS/Linux)
$0
Definition of Done
  • bun --version outputs a version number
  • bun --revision shows the build revision
Common Mistakes to Avoid

bun command not found after install

Add ~/.bun/bin to your PATH and source your shell config

Installing on unsupported OS/kernel

Check macOS 13+, Linux kernel 5.6+, Windows 10 1809+

2

Following along, or just reading? 👀

Spin up a personalized “learn Bun” plan you can save, check off, and return to anytime — unlimited on the free trial.

Start free trial →
3
4
5