-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install Bun
sametcn99 edited this page Feb 15, 2025
·
1 revision
Bun is an all-in-one JavaScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.
npm install -g bun
curl -fsSL https://bun.sh/install | bash
Currently, Bun has experimental Windows support. For the best experience:
- Install Windows Subsystem for Linux (WSL)
- Install Bun within WSL using the curl command above
After installation, verify Bun is properly installed:
bun --version
-
Initialize a new project:
bun init
-
Run a JavaScript file:
bun run index.js
-
Install dependencies:
bun install
β οΈ Disclaimer: These documents are not official documentation and may contain outdated, incomplete, or incorrect information. Please verify the information before use.