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>