bun-configure-private-registry-for-org-scope
Configure a private registry for an organization scope with bun install
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Configure a private registry for an organization scope with bun install
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Speed up JavaScript execution with bytecode caching in Bun's bundler
Bun's bundler has built-in support for CSS with modern features
Migration guide from esbuild to Bun's bundler
Generate standalone executables from TypeScript or JavaScript files with Bun
Build fullstack applications with Bun's integrated dev server that bundles frontend assets and handles API routes
Hot Module Replacement (HMR) for Bun's development server
| name | Bun Configure private registry for org scope |
| description | Configure a private registry for an organization scope with bun install |
Private registries can be configured using either .npmrc or bunfig.toml. 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:
[install.scopes]
# as a string
"@myorg1" = "https://usertitle:password@registry.myorg.com/"
# as an object with username/password
# you can reference environment variables
"@myorg2" = {
username = "myusername",
password = "$npm_pass",
url = "https://registry.myorg.com/"
}
# as an object with token
"@myorg3" = { token = "$npm_token", url = "https://registry.myorg.com/" }
Your bunfig.toml can reference environment variables. Bun automatically loads environment variables from .env.local, .env.[NODE_ENV], and .env. See Docs > Environment variables for more information.
[install.scopes]
"@myorg3" = { token = "$npm_token", url = "https://registry.myorg.com/" }
See Docs > Package manager for complete documentation of Bun's package manager.