skills/bun-guides-install-custom-registry/SKILL.md
Override the default npm registry for bun install
npx skillsauth add jarle/bun-skills Bun Override the default npm registry for bun installInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The default registry is registry.npmjs.org. This can be globally configured in bunfig.toml.
[install]
# set default registry as a string
registry = "https://registry.npmjs.org"
# if needed, set a token
registry = { url = "https://registry.npmjs.org", token = "123456" }
# if needed, set a username/password
registry = "https://usertitle:[email protected]"
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]
registry = { url = "https://registry.npmjs.org", token = "$npm_token" }
See Docs > Package manager for complete documentation of Bun's package manager.
development
Using TypeScript with Bun, including type definitions and compiler options
development
Learn how to write tests using Bun's Jest-compatible API with support for async tests, timeouts, and various test modifiers
testing
Learn how to use snapshot testing in Bun to save and compare output between test runs
testing
Learn about Bun test's runtime integration, environment variables, timeouts, and error handling