Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66478

nodejs does not send credentials to NPM local registry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • nodejs-plugin
    • None
    • windows server 2016

      I surround a bat 'npm publish' with a nodejs that contains a configuration id that specifies a registry and a credential.  This creates a config file in the workspace@tmp folder with the following entries:

      registry = http:/my-local-nexus.company.com:8081/repository/npm-hosted/
      always-auth = true
      _auth = <huge base64 string>

      at the end of the publish I get the following:

      npm ERR! code E401
      npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
      

            nfalco Nikolas Falco
            marioja Mario Jauvin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: