Install Bun
Bun is a single executable. Use these exact commands based on your OS:
macOS / Linux
curl -fsSL https://bun.sh/install | bash
Reload your shell: source ~/.bashrc or restart terminal.
Windows
powershell -c "irm bun.sh/install.ps1|iex"
Add to PATH if needed and restart terminal.
Verify:
bun --version
bun --revision
Create hello.js:
console.log('Hello from Bun!');
Run: bun run hello.js