Bun
Ce contenu n’est pas encore disponible dans votre langue.
Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun
.
Bun ships as a single executable that can be installed a few different ways.
Installing
macOS and Linux
Windows
Bun provides a limited, experimental native build for Windows. It is recommended to use Bun within Windows Subsystem for Linux and follow the above instructions. To help catch bugs, the experimental build enables many debugging assertions, which will make the binary slower than what the stable version will be.
To install, paste this into a terminal:
Checking Installation
To check that Bun was installed successfully, open a new terminal window and run bun --version
.
To see the precise commit of oven-sh/bun that you’re using, run bun --revision
.
If you’ve installed Bun but are seeing a command not found
error, you may have to manually add the installation directory (~/.bun/bin
) to your PATH
.
Upgrading
Once installed, the binary can upgrade itself.
Bun automatically releases an (untested) canary build on every commit to main
. To upgrade to the latest canary build:
Uninstall
If you need to remove Bun from your system, use the following commands.