npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.18k stars 2.98k forks source link

[BUG] npm login - Exit handler never called! #7612

Open DanielLey21 opened 1 week ago

DanielLey21 commented 1 week ago

Is there an existing issue for this?

This issue exists in the latest npm version

Current Behavior

When trying to run npm loginto authenticate with my companies artifactory in order to run npm install, I am unable to login, and the following error message is shown

$ npm login npm notice Log in on https://artifactory.{companyname}.com/artifactory/api/npm/et-npm/ Login at: https://artifactory.{companydomain}/ui/auth-provider/npm?uuid={id} npm error Exit handler never called! npm error This is an error with npm itself. Please report this error at: npm error https://github.com/npm/cli/issues npm error A complete log of this run can be found in: D:\Users\etc

Expected Behavior

I am expecting to be logged in, or the web browser for our artifacory is prompted so that I am authenticated. Then I can npm install correctly

Steps To Reproduce

I cannot provide those details.

Environment

kchindam-infy commented 5 days ago

HI @DanielLey21
To better understand the issue, could you please provide your npm config details. Please make sure to mask any sensitive information. you can replace sensitive information by [MASKED] or ***.

This will help to reproduce the issue and investigate further.