Skip to main content
你可以在 .npmrcbunfig.toml 中配置私有注册表。两者都可以使用;我们推荐使用 bunfig.toml,因为它支持 Bun 特有的选项。 要为特定的 npm 作用域配置注册表:
bunfig.toml

你的 bunfig.toml 可以引用环境变量。无论 NODE_ENV 的值是什么,bun install 都会自动从 .env.local.env.production.env 加载环境变量;它不会读取 .env.development.env.test。请参阅环境变量
bunfig.toml

请参阅 bun install