-
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] MaxListenersExceededWarning: Possible EventEmitter memory leak detected. (v10) #6763
Comments
|
@doberkofler can you run |
I haven't been able to reproduce this yet. I've tried running const og = socket.on
socket.on = function (...args) {
if (args[0] === 'close') {
console.error('close event on socket added', socket.listenerCount('close'))
}
return og.apply(this, args)
} @doberkofler A reproduction with a |
I wonder if this has to do with this line in the cli/node_modules/events/events.js Lines 449 to 468 in d0b7899
|
This is the requested output and I attached the package-lock.json file. (node:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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:19864) 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:715: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)
Package Current Wanted Latest Location Depended by
@types/select2 3.5.6 3.5.6 4.0.58 node_modules/@types/select2 periscope
chalk 4.1.2 4.1.2 5.3.0 node_modules/chalk periscope
dropzone 5.9.3 5.9.3 6.0.0-beta.2 node_modules/dropzone periscope
select2 3.5.1 3.5.1 4.1.0-rc.0 node_modules/select2 periscope |
Possibly also this |
thank you @doberkofler for the reproduction. I was able to find that this only happens in Node 20.4.0 and above, and goes away if the Node flag So a potential workaround is to use I also created a failing test case in https://github.com/npm/cli/pull/6781/files to document the current behavior. I'm sure this is due to the new |
BTW, this seems to cause trouble with VSCode:
|
Can't be 100% sure, but I think I've found a small bug in Node that could the underlying cause of this (nodejs/node#50136) - once that's resolved this might go away 😄. Thanks to @lukekarrys for the pointers towards autoSelectFamily being the trigger here! |
This makes it impossible for us to make the switch to Node 20 because all projects are failing our Gitlab CI build pipeline. I tried the suggested We're behind a proxy and my experience has been that 90% of |
I just found out that the current Node LTS 20.9.0 ships with npm v10.1.0 which is known to ignore proxy environment variables. So I'm probably seeing two distinct problems here. |
I believe this is now fixed due to the linked Node bug above being fixed. |
sorry please i am confused. How did you fix it? |
I'm facing the same with Yarn 4.0.2 |
I can confirm that this error is gone with the latest Node 20.10.0. Also, proxies are working again with the included npm 10.2.3. |
This was a bug in Node.js that has been fixed (ref nodejs/node#50136). Ref #6763
This was a bug in Node.js that has been fixed (ref nodejs/node#50136). Ref #6763
I upgraded my node version to v20.11.0 and the issue disappeared. |
Upgraded the node version to 20.11.1, but still persists |
Bumping to 20.11.0 due to a bug with event emitter on npm install See: npm/cli#6763 (comment)
I encountered the warning with the same message. After upgrading to Node.js version 20.11.0, the warning disappeared:
After this, the warning no longer appeared.
|
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
After upgrading to npm 10, I get the following error message:
Expected Behavior
no error
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: