Npm login Fail for private repository



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


#!/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!     <>

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.)

closed #3

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