bun install
Install JavaScript dependencies for a project from
package.json. More information: https://bun.com/docs/pm/cli/install.
- Install all dependencies listed in
package.json:
bun
- Install a single package (this is an alias for
bun add):
bun @
- Install a package globally:
bun
- Install only production dependencies (skips
devDependencies):
bun
- Install dependencies exactly from the
bun.lockblockfile (frozen lockfile):
bun --frozen-lockfile
- Force re-download all packages from the registry, ignoring the cache:
bun
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
