mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-19 01:43:18 +08:00
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Meinard Francisco <44516102+znarfm@users.noreply.github.com>
758 B
758 B
bun install
Install JavaScript dependencies for a project from
package.json. More information: https://bun.com/docs/cli/install.
- Install all dependencies listed in
package.json:
bun {{[i|install]}}
- Install a single package (this is an alias for
bun add):
bun {{[i|install]}} {{package_name}}@{{version}}
- Install a package globally:
bun {{[i|install]}} {{[-g|--global]}} {{package_name}}
- Install only production dependencies (skips
devDependencies):
bun {{[i|install]}} --production
- Install dependencies exactly from the
bun.lockblockfile (frozen lockfile):
bun {{[i|install]}} --frozen-lockfile
- Force re-download all packages from the registry, ignoring the cache:
bun {{[i|install]}} {{[-f|--force]}}