In 2024, to increase the default limit globally, you can do:
import { EventEmitter } from 'events' EventEmitter.defaultMaxListeners = 20