Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 972 Bytes

local_registry.md

File metadata and controls

35 lines (24 loc) · 972 Bytes

How to use Local registry (verdaccio)

Purpose

  • Test the publishing process locally.
  • Test the installation process locally.

How to use

To be able to use the local registry, you need:

  1. Run the local registry server
npx verdaccio

That will output:

info --- config file  - /Users/xepozz/.config/verdaccio/config.yaml
info --- "crypt" algorithm is deprecated consider switch to "bcrypt". Read more: https://github.com/verdaccio/monorepo/pull/580
info --- plugin successfully loaded: verdaccio-htpasswd
info --- plugin successfully loaded: verdaccio-audit
warn --- http address - http://localhost:4873/ - verdaccio/5.23.2
  1. Add the local registry to your ~/.npmrc file:
registry=http://localhost:4873/ <-- the url from the previous step
  1. Run npm adduser and done this step.
  2. Run npm publish in the root of the package you want to publish or use npm publish -ws to publish all packages in the monorepo.