Categories
JavaScript Answers

How to debug “EventEmitter memory leak detected. 11 listeners added” with Node?

Spread the love

To debug "EventEmitter memory leak detected. 11 listeners added" with Node, we can use the Node --trace=warnings option.

For instance, we run

node --trace-warnings

to trace the source of the warning when we run our app.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *