node-notifier icon indicating copy to clipboard operation
node-notifier copied to clipboard

Not compatible with cluster worker processes on Windows.

Open zamb3zi opened this issue 1 year ago • 0 comments

The following example generates "TypeError: handle.setSimultaneousAccepts is not a function" on Windows:

const cluster = require('cluster');
const notifier = require('node-notifier');

if(cluster.isPrimary) {
    cluster.fork();
    notifier.notify('OK'); // this works
} else {
    notifier.notify('Error'); // this generates handle.setSimultaneousAccepts is not a function
}

Tested with Windows 10, Node 16.16.0/16.13.2/16.13.1 and node-notifier 10.0.1 and 8.0.2.

Thanks!

zamb3zi avatar Jul 21 '22 09:07 zamb3zi