Nexus Repository Manager for npm

Availability This feature is available with Enterprise plans. For more information, see Plans and pricing for more details.

This guide is relevant for Snyk Web UI integrations only; the Snyk CLI already supports Yarn and npm Projects with private Nexus Repository Manager registries.

Snyk can use Nexus Repository Manager with npm and Yarn Projects imported from Git.

This enables Snyk to regenerate lockfiles with the correct URLs when creating Pull/Merge Requests.

You can add configuration to tell Snyk where your private Nexus Repository Manager Node.js packages are hosted and under what scope.

This is the same information you would normally add in your .yarnrc or .npmrc

JavaScript language settings

Go to Settings > Languages > JavaScript and either the npm or Yarn settings, depending on your Project type.

If you have not previously connected to Nexus Repository Manager you will be asked to configure an integration first; see Nexus Repository Manager connection setup.

Follow the steps on the tabs below, according to your version of Nexus.

  1. Select Add registry configuration.

  2. Select Nexus as the Package source.

  3. If you want to configure this registry as the default registry url, leave the scope blank.

  4. If you want to configure only scoped packages to use this registry, add a scope.

  5. If you want to add a mix of the default registry url and scoped packages, add multiple configurations, one for the default and one per scope.

  6. The Repository section should be set as whatever comes after repository/ in the internal repository URL. For example, if the URL is, Repository should be set as npm-group.

  7. When you have added all the registries and scopes you want, click Update settings.

Test it out

Open a Pull/Merge Request on a Project that contains private dependencies that are hosted in Nexus to see a lockfile updated and included in the Snyk Fix Pull Request with the correct URL to your repository.

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.