Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-7989

add support for npm adduser/login command

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.1
    • Fix Version/s: 3.0.0-m6
    • Component/s: NPM
    • Labels:
      None

      Description

      Configuring credentials is very often required to publish to and get packages from Nexus npm repos.

      Our current process is to ask the end user to manually base64 encode their credentials and insert an _auth property into their .npmrc file with the value.

      base64 encoding credentials manually is done differently on every OS and can lead to 401 authentication errors if not done correctly.

      Recent npm cli versions also fail with authentication errors when _auth is correctly set, but the "email" property is not set, even though Nexus does not need this property itself.

      The npm adduser command handles all these manual steps and sets up the .npmrc file correctly. It is something an npm user is used to using and is documented at the npm site. Nexus should support the npm adduser command, to make adding auth information to .npmrc easier and make getting started with Nexus npm repos quicker.

      https://docs.npmjs.com/cli/adduser

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title