Small example how to install dependencies from a private registry using verdaccio with bun.
- Install dependencies (verdaccio itself) from a private registry
bun install
- Run verdaccio with
bun
bun main.js
// main.js
import {runServer} from 'verdaccio';
(async () => {
const app = await runServer(); // default configuration
app.listen(4000, (event) => {
// do something
});
})();
// bunfig.toml
[install]
registry = "http://localhost:4873"
- Override the default npm registry for bun install
- Configure a private registry for an organization scope with bun install
Juan Picado, 2024.