网页 综合 更新时间 2026-11-14 05:15:25

bun install — a superfast npm-compatible package manager

自动蜘蛛 bun.sh 正文约 1662 字
bun install — a superfast npm-compatible package manager
It reads your package.json, migrates your lockfile, and installs from a global cache. Keep running your app on Node.js if you like — installs, CI and monorepo workflows just get quicker.
warm cache · seconds (lower is better)
We installed the same Next.js app with bun, npm, pnpm and yarn in six common situations, from a first install to a reinstall where nothing has changed.
T3-stack Next.js app, 25 direct dependencies, ~220 packages in the lockfile · Linux x64, EPYC 9R14 · bench/install in oven-sh/bun · each package manager with its own lockfile and node_modules, state prepared per scenario before every run, every package manager at defaults · medians of 3, peak memory is the largest of the 3 runsreproduce the benchmark →
A standalone tool: use it in any project with a package.json — workspaces, git/http/tarball dependencies, custom registries and all.
Packages download once into a global cache. Later installs copy them from there with the fastest system calls your OS offers.
Reads the workspaces key and installs every package in one pass. Catalogs pin one version of a dependency across the whole monorepo.
bun add, bun remove, bun update -i, bun outdated, bun why — everything you expect from npm, pnpm or yarn.
Bun doesn't run arbitrary postinstall scripts. Popular packages are pre-verified; allow-list others with trustedDependencies. bun audit and minimum-release-age are built in.
bun.lock is plain text: reviewable in PRs, mergeable by git, and migrated automatically from package-lock, yarn.lock or pnpm-lock.
The fast all-in-one JavaScript runtime & toolkit. Now part of Anthropic.
Baked with ♥ in San Francisco · © 2026 Anthropic, PBC
访问原文 返回搜索 https://bun.sh/package-manager
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。