Publish package into local Verdaccio registry overriding .npmrc

74 Views Asked by At

Trying to publish package into local Verdaccio registry.

Tried to run npm publish --registry http://localhost:4873 but it is trying to publish package into production Nexus which is specified in .npmrc file. When manually changing .npmrc with local registry URL it works fine, as expected, but I don't want to do it like this as I need Verdaccio only for testing locally.

Is there a way to override .npmrc and specify registry from command line?

0

There are 0 best solutions below