diff --git a/lib/internal/console/constructor.js b/lib/internal/console/constructor.js index 85b88a72ea9290..5aa3c3a28367d8 100644 --- a/lib/internal/console/constructor.js +++ b/lib/internal/console/constructor.js @@ -213,7 +213,7 @@ function createWriteErrorHandler(instance, streamSymbol) { // removed after the event, non-console.* writes won't be affected. // we are only adding noop if there is no one else listening for 'error' if (stream.listenerCount('error') === 0) { - stream.on('error', noop); + stream.once('error', noop); } } };