DEV Community

Jessé Cruz
Jessé Cruz

Posted on

How to set up a private npm registry. The easiest way.

Need a private npm registry without changing the way your team already works?

In this guide, I walk through setting up Omni Line as a self-hosted npm registry — from installation to publishing and installing private packages.

The workflow is intentionally simple:

  1. Install Omni Line
  2. Create a hosted npm registry
  3. Generate a personal access token
  4. Configure .npmrc
  5. Keep using npm publish and npm install as usual
  6. You can run it on your own infrastructure and use the same registry workflow for developers, CI, and even AI coding agents.

I also cover how to let an agent handle most of the setup while keeping package publishing explicit and controlled.

Read the full guide.

Top comments (0)