-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm login - Exit handler never called! #7612
Comments
HI @DanielLey21 This will help to reproduce the issue and investigate further. |
Hi. 👋 In case it helps, I've been running into this too. Here's my details: Configuration
System
The workaround I've found is not to hit |
@bkuhlmann Thanks for the npm config, ofcourse i have tried with similar config with npm registry and authToken. On npm login command on Press Enter key it successfully launched the npmjs browser with login page as expected. Please check your config registry and try again. Tried on: |
Thanks. OK, I think I've got better Steps to Recreate for you. Try this: Initial Configuration
Steps Notice I've made sure the registry is deleted this time. Now attempt to login via
Here's the full log: Log Details
So the above errors and I don't see By the way, in case this helps, I'm using my YubiKey to authenticate. Maybe there is some kind of delay the CLI fails to deal with that directly clicking the URL handles better? |
Similer issues where we have the url opener for web auth. Tracking these here in this issue.
|
manage to reproduce similer behaviour
~/workarea/rep $ npm login --no-progress
npm notice Log in on https://registry.npmjs.org/
Login at:
https://www.npmjs.com/login?next=/login/cli/3226b795-9794-4937-b58d-3d9820fa93e4
Press ENTER to open in the browser...
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: /Users/milaninfy/.npm/_logs/2024-07-23T15_34_01_010Z-debug-0.log |
@bkuhlmann I see in your reproduction steps that you have one config |
Huh, sure enough, ensuring that |
i also have same issue, and this is my first time using
|
i have the same problem. please help me or fix it as quickly as possible.
|
@admibrill try |
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
The text was updated successfully, but these errors were encountered: