Skip to content

Commit

Permalink
npmrc is supported; fixes #15856
Browse files Browse the repository at this point in the history
  • Loading branch information
RiskyMH committed Dec 19, 2024
1 parent e66a347 commit a722ecb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/guides/install/registry-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
name: Configure a private registry for an organization scope with bun install
---

Bun does not read `.npmrc` files; instead private registries are configured via `bunfig.toml`. To configure a registry for a particular npm scope:
Private registries can be configured using either [`.npmrc`](https://bun.sh/docs/install/npmrc) or [`bunfig.toml`](https://bun.sh/docs/runtime/bunfig#install-registry). While both are supported, we recommend using **bunfig.toml** for enhanced flexibility and Bun-specific options.

To configure a registry for a particular npm scope:

```toml#bunfig.toml
[install.scopes]
Expand Down
2 changes: 1 addition & 1 deletion docs/install/npmrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Bun supports loading configuration options from [`.npmrc`](https://docs.npmjs.co

{% /callout %}

# Supported options
## Supported options

### `registry`: Set the default registry

Expand Down

0 comments on commit a722ecb

Please sign in to comment.