npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

How do use the same authentication for multiple registries in the same domain?

GitLab NPM Registry requires you to specify a project ID in the registry URL under your publishConfig in package.json.

To authenticate, the documentation instructs you to add the following to your .npmrc


This is fine for one project but what if I have dozens of packages I want to publish? Can I associate an authToken with an entire domain or base url? I tried the following without any luck: