mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 09:50:09 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/bun-install
Normal file
33
tldr/bun-install
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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.lockb` lockfile (frozen lockfile):
|
||||
|
||||
`bun {{[i|install]}} --frozen-lockfile`
|
||||
|
||||
- Force re-download all packages from the registry, ignoring the cache:
|
||||
|
||||
`bun {{[i|install]}} {{[-f|--force]}}`
|
||||
Reference in New Issue
Block a user