Skip to main content
🏠Getting StartedConfigurationVersion: 2.0.0-beta.6

Configuration

Prerequisite

To be able to use the Quantum librairies, an artifactory account is needed.

  1. Ask for an artifactory account

  2. After the confirmation that your access is granted, then log in the artifactory platform with your credentials.

To set up your .npmrc file to replace the default npm registry with an Artifactory registry, you'll need to configure the registry URL in your npm configuration. You can do this manually by editing the .npmrc file or by using the "Set Me Up" button in the Artifactory dashboard. Here's a step-by-step guide for both methods:

Method 1: Manual Configuration

  1. For your npm command line client to work with Artifactory, you first need to set the default npm registry with an Artifactory npm repository using the following command:
npm config set registry https://artifactory.thalesdigital.io/artifactory/api/npm/npm/
  1. Using basic authentication, you need to generate an identity token into your profile.

Artifactory identity token

and set this token using the following command:

MacOS
curl -u <user_email>:<user_identity_token> https://artifactory.thalesdigital.io/artifactory/api/npm/auth >> ~/.npmrc
Windows
curl -u <user_email>:<user_identity_token> https://artifactory.thalesdigital.io/artifactory/api/npm/auth >> %USERPROFILE%/.npmrc

Check your .npmrc file, it should be like:

registry=https://artifactory.thalesdigital.io/artifactory/api/npm/npm/
_auth = xxxxx
email = xxxxx
always-auth = true

Method 2: Using "Set Me Up" in Artifactory Dashboard

  1. Log in to your Artifactory dashboard.

  2. In the Artifactory dashboard, go to the navigation bar and look for a "Set Me Up" button/link.

Artifactory set me up

  1. Click on the "Set Me Up" button and select the npm package manager.

Artifactory npm

  1. Generate an identity token

Artifactory identity token

  1. Artifactory will provide you with configuration instructions.

Artifactory instructions

Follow the instructions provided by Artifactory. These instructions will often include a command to set the registry URL using the npm config set command:

npm config set registry https://artifactory.thalesdigital.io/artifactory/api/npm/npm/

Copy / Paste the following into the ~/.npmrc file (in Windows %USERPROFILE%/.npmrc):

_auth = xxxxx
email = xxxx
always-auth = true

Check your .npmrc file, it should be like:

registry=https://artifactory.thalesdigital.io/artifactory/api/npm/npm/
_auth = xxxxx
email = xxxxx
always-auth = true