本页还没有译文
本页 7 段还没译成简体中文,下面显示的是英文原文。Using bun install with Artifactory
还没翻译译自英文(bun.com)本页 7 段都还没译
JFrog Artifactory is a package management system for npm, Docker, Maven, NuGet, Ruby, Helm, and more. You can use it to host your own private npm registry, along with other types of packages.
To use it with bun install, add a bunfig.toml file to your project with the following contents:
Configure with bunfig.toml
Replace MY_SUBDOMAIN with your JFrog Artifactory subdomain, such as jarred1234. Replace MY_TOKEN with your base64-encoded username:password. Bun sends this value as-is in a Basic Authorization header. To authenticate with a JFrog access token instead, use _authToken= in place of _auth=. Bun sends that value as a Bearer token.
[install.registry]
url = "https://MY_SUBDOMAIN.jfrog.io/artifactory/api/npm/npm/_auth=MY_TOKEN"
# To authenticate with an access token instead
# url = "https://MY_SUBDOMAIN.jfrog.io/artifactory/api/npm/npm/_authToken=MY_TOKEN"
# You can use an environment variable here
# url = "$NPM_CONFIG_REGISTRY"Configure with $NPM_CONFIG_REGISTRY
As with npm, you can set the NPM_CONFIG_REGISTRY environment variable to configure JFrog Artifactory for bun install.