Skip to content

Registries

Rush reads registry configuration from a .npmrc file in your project root — the same format used by npm and Yarn. No CLI flags needed; configuration lives in the file and applies to every rush command automatically.


To replace registry.npmjs.org project-wide:

.npmrc
registry=https://registry.mycompany.com

All packages without a scope-specific override will be fetched from this URL.


Route a specific npm scope to a private registry while leaving everything else on the public registry:

.npmrc
@myorg:registry=https://npm.mycompany.com
@ui:registry=https://packages.design-system.com
  • Scoped packages (@myorg/button) resolve using their matching @scope:registry entry.
  • Everything else falls back to registry (or registry.npmjs.org if not set).

.npmrc
registry=https://registry.mycompany.com
@oss:registry=https://registry.npmjs.org

All packages go to your private registry except @oss/*, which stays on the public one.