Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-18537

Cannot login to preconfigured scoped npm registry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Severity:
      Medium

      Description

      After configuring .npmrc with the following command "npm login" fails with error 401:

      npm config set @<SCOPE>:registry https://davidpart.jfrog.io/davidpart/api/npm/npm/

      Steps to reproduce:

      1. npm config set @<SCOPE>:registry https://<ARTIFACTORY_URL>:8081/artifactory/api/npm/npm/
      2. npm login with Artifactory credentials 

      Output:

      npm ERR! code E401

      npm ERR! Incorrect or missing password.

      npm ERR! If you were trying to login, change your password, create an

      npm ERR! authentication token or enable two-factor authentication then

      npm ERR! that means you likely typed your password in incorrectly.

      npm ERR! Please try again, or recover your password at:

      npm ERR!     https://www.npmjs.com/forgot

      npm ERR!

      npm ERR! If you were doing some other operation then your saved credentials are

      npm ERR! probably out of date. To correct this please try logging in again with:

      npm ERR!     npm login

       

      Workaround:

      1. Remove .npmrc file
      2. Configure your default npm registry with an Artifactory npm repository with the next command:

      npm config set registry https://<ARTIFACTORY_URL>:8081/artifactory/api/npm/npm/

      1. Npm login with your Artifactory login credentials
      2. Install the npm scoped package with the next command:
      3. Npm install @angular/<Example>

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            davidp David Pinhas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-18537 -
                SYNCHRONIZED
                • Last Sync Date: