diff options
Diffstat (limited to 'docs/install')
-rw-r--r-- | docs/install/index.md | 9 | ||||
-rw-r--r-- | docs/install/registries.md | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/install/index.md b/docs/install/index.md index 48e001275..162a4abac 100644 --- a/docs/install/index.md +++ b/docs/install/index.md @@ -49,6 +49,12 @@ To install in production mode (i.e. without `devDependencies`): $ bun install --production ``` +To install dependencies without allowing changes to lockfile (useful on CI): + +```bash +$ bun install --frozen-lockfile +``` + To perform a dry run (i.e. don't actually install anything): ```bash @@ -80,6 +86,9 @@ peer = false # equivalent to `--production` flag production = false +# equivalent to `--frozen-lockfile` flag +frozenLockfile = false + # equivalent to `--dry-run` flag dryRun = false ``` diff --git a/docs/install/registries.md b/docs/install/registries.md index e4090e3c9..86657ca26 100644 --- a/docs/install/registries.md +++ b/docs/install/registries.md @@ -24,3 +24,7 @@ To configure a private registry scoped to a particular organization: # registry with token "@myorg3" = { token = "$npm_token", url = "https://registry.myorg.com/" } ``` + +### `.npmrc` + +Bun does not currently read `.npmrc` files. For private registries, migrate your registry configuration to `bunfig.toml` as documented above. |