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] MaxListenersExceededWarning: Possible EventEmitter memory leak detected. #6854

Closed
1 of 2 tasks
vpmedia opened this issue Oct 1, 2023 · 1 comment
Closed
1 of 2 tasks
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x

Comments

@vpmedia
Copy link

vpmedia commented Oct 1, 2023

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

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit is shown repeatedly when running npm update or npm outdated

Expected Behavior

No warnings / exception.

Steps To Reproduce

  1. Run 'npm update --save'
  2. See error:
(node:11752) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
    at _addListener (node:events:588:17)
    at TLSSocket.addListener (node:events:606:10)
    at Readable.on (node:internal/streams/readable:904:35)
    at TLSSocket._wrapHandle (node:_tls_wrap:706:8)
    at TLSSocket.reinitializeHandle (node:_tls_wrap:718:22)
    at internalConnectMultiple (node:net:1123:30)
    at Timeout.internalConnectMultipleTimeout (node:net:1687:3)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7)
(node:11752) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. 

Environment

  • npm: 10.1.0
  • Node.js: v20.7.0
  • OS Name: MacOS 14.0
  • System Model Name: MacBook Air with Intel silicon
@vpmedia vpmedia added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels Oct 1, 2023
@vpmedia
Copy link
Author

vpmedia commented Oct 1, 2023

Sorry, this is a duplicate of #6763

@vpmedia vpmedia closed this as completed Oct 1, 2023
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 Release 10.x
Projects
None yet
Development

No branches or pull requests

1 participant