Skip to content
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] Exit handler never called! on npm login #7644

Closed
2 tasks done
w3spi5 opened this issue Jul 13, 2024 · 2 comments
Closed
2 tasks done

[BUG] Exit handler never called! on npm login #7644

w3spi5 opened this issue Jul 13, 2024 · 2 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps

Comments

@w3spi5
Copy link

w3spi5 commented Jul 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Running npm login

$ npm login
npm notice Log in on https://registry.npmjs.org/
Login at:
https://www.npmjs.com/login?next=/login/cli/d52ddbd5-6a1a-4cb9-a802-fe957c46e510
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: C:\Users\2s\AppData\Local\npm-cache\_logs\2024-07-13T09_42_15_230Z-debug-0.log

Expected Behavior

Login via CLI worked before

Steps To Reproduce

  1. In this environment... see below
  2. With this config... see below
  3. Run npm login
  4. See error...
0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\2s\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
1 info using npm@10.8.2
2 info using node@v20.13.1
3 silly config load:file:C:\Users\2s\AppData\Roaming\npm\node_modules\npm\npmrc
4 silly config load:file:C:\Users\2s\.npmrc
5 silly config load:file:C:\Users\2s\AppData\Roaming\npm\etc\npmrc
6 verbose title npm login
7 verbose argv "login"
8 verbose logfile logs-max:10 dir:C:\Users\2s\AppData\Local\npm-cache\_logs\2024-07-13T09_42_15_230Z-
9 verbose logfile C:\Users\2s\AppData\Local\npm-cache\_logs\2024-07-13T09_42_15_230Z-debug-0.log
10 notice Log in on https://registry.npmjs.org/
11 verbose web login before first POST
12 silly logfile start cleaning logs, removing 1 files
13 silly logfile done cleaning log files
14 http fetch POST 200 https://registry.npmjs.org/-/v1/login 381ms
15 verbose web auth got response {
15 verbose web auth   loginUrl: 'https://www.npmjs.com/login?next=/login/cli/d52ddbd5-6a1a-4cb9-a802-fe957c46e510',
15 verbose web auth   doneUrl: 'https://registry.npmjs.org/-/v1/done?sessionId=d52ddbd5-6a1a-4cb9-a802-fe957c46e510'
15 verbose web auth }
16 verbose web auth opening url pair
17 http fetch GET 202 https://registry.npmjs.org/-/v1/done?sessionId=*** 197ms
18 verbose cwd C:\Users\2s
19 verbose os Windows_NT 10.0.22631
20 verbose node v20.13.1
21 verbose npm  v10.8.2
22 error Exit handler never called!
23 error This is an error with npm itself. Please report this error at:
24 error   <https://github.com/npm/cli/issues>
25 verbose exit 0
26 info ok
27 error A complete log of this run can be found in: C:\Users\2s\AppData\Local\npm-cache\_logs\2024-07-13T09_42_15_230Z-debug-0.log

Environment

  • npm: 10.8.2
  • Node.js: v20.13.1
  • OS Name: Windows_NT 10.0.22631
  • System Model Name: Windows 11
  • npm config:
$ npm config ls
; "builtin" config from C:\Users\2s\AppData\Roaming\npm\node_modules\npm\npmrc

prefix = "C:\\Users\\2s\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; node version = v20.13.1
; npm local prefix = C:\Users\2s
; npm version = 10.8.2
; cwd = C:\Users\2s
; HOME = C:\Users\2s
; Run `npm config ls -l` to show all defaults.
@w3spi5 w3spi5 added Bug thing that needs fixing Needs Triage needs review for next steps labels Jul 13, 2024
@melroy89
Copy link

Duplicate of: #7657

@milaninfy
Copy link
Contributor

Tracking this here as #7612
Closing as Duplicate

@milaninfy milaninfy closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

3 participants