Loading

OmniOut Issue: Error "unable to authenticate, need: BASIC realm=Sonatype Nexus Repository Manager"

Udgivelsesdato: Dec 4, 2025
Beskrivelse

Error "unable to authenticate, need: BASIC realm=Sonatype Nexus Repository Manager" faced when trying to authentication using NPM key.

npmaccesserror.png

 

This error might happen due to an issue in Node JS which causes the authentication flow to fail. 

Løsning

Perform the following actions:

  1. Clear the NPM cache using: npm cache clean --force 
  2. Confirm the Node.js version in use is v14.16.1 or higher.
  3. Validate the .npmrc file within the OmniOut project. This file is not provided by Salesforce Industries (SFI) and depends entirely on the local development environment. A properly configured .npmrc should resemble the example below:
    always-auth=true
    _auth=your_token_here
    @vlocity-cme:registry=https://repo.vlocity.com/repository/vlocity-public/
    @vlocity-cme-sdk:registry=https://repo.vlocity.com/repository/vlocity-public/
    @vlocity-ins-sdk:registry=https://repo.vlocity.com/repository/vlocity-public/ engine-strict=true 
  4. After correcting the .npmrc file, run: yarn install 

 

The installation should then proceed with the required access.

Alternative Method

Authentication can also be completed by running: npm login --registry=https://repo.vlocity.com/repository/vlocity-public/


This method requires the username and password associated with the NPM key.
Once authenticated successfully, npm install should execute without errors.

Vidensartikelnummer

005232677

 
Indlæser
Salesforce Help | Article