nodejs does not send credentials to NPM local registry

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: nodejs-plugin
    • None
    • Environment:
      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"
      

            Assignee:
            Nikolas Falco
            Reporter:
            Mario Jauvin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: