Npm login Fail for private repository

Hi

We have a private npm repository hosted for some of our npm packages(proget).

Running below command throws an error.

  • run:
    name: Login to Proget - mobile component
    command: echo -e $“$NPM_USER\n$NPM_PASS\n$NPM_EMAIL” | npm login

Error:

#!/bin/bash -eo pipefail
echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
Username: {my username}
Password: npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

It read username from environment variable but fails at password.

Any suggestions would be helpful here.

(Questions can be made more readable in this forum by the use of Markdown code formatting. To apply it, edit your question, select a block, click the code icon, and resave. You can format both your YAML and your error in this fashion.)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.