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

Issues with npm "Set Me Up" page for scoped packages

    Details

    • Type: Change Request
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.1.3
    • Fix Version/s: 5.3.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Leap 9, Leap 10

      Description

      We have encountered several issues with npm "Set Me Up" page when using scoped packages:

      1) The command: "npm config set @<SCOPE>:registry http://localhost:8081/artifactory/api/npm/npm" is missing the last slash.
      It should be "npm config set @<SCOPE>:registry http://localhost:8081/artifactory/api/npm/npm/".
      Without this, 'npm publish' will return this error:
      npm ERR! code ENEEDAUTH

      npm ERR! need auth auth required for publishing
      npm ERR! need auth You need to authorize this machine using `npm adduser`
      npm verb exit [ 1, true ]

      After adding the last slash, the deploy works.

      2) The example of the authentication details for scoped packages contain "http://"
      This leads to an error.
      When using the curl call, the correct details (without http://) is shown.

        Attachments

          Activity

            People

            • Assignee:
              tomere Tomer Elkayam
              Reporter:
              avivb Aviv Blonder
              Assigned QA:
              Mor Iluz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: