Managing Dependencies in Bun
From the Bun cheat sheet ยท Package Manager ยท verified Jul 2026
Managing Dependencies
Install, add, remove, and update packages
bash
# Install all dependencies
bun install
# Add a package
bun add express
# Dev dependency
bun add -d typescript
# Remove a package
bun remove express๐ก bun install is up to 30x faster than npm โ uses a global cache and hardlinks
โก Since Bun 1.2 the default lockfile is the text-based bun.lock โ readable in diffs and Git-friendly
๐ Use --frozen-lockfile in CI to ensure deterministic installs
๐ข Workspaces work like npm/yarn workspaces โ just add "workspaces" to package.json
installaddremovepackages