events.js:72 throw er; // Unhandled \'error\' event ^ Error: spawn ENOENT at errnoException (chil
in windows, simply adding shell: true option solved my problem:
shell: true
incorrect:
const { spawn } = require('child_process'); const child = spawn('dir');
correct:
const { spawn } = require('child_process'); const child = spawn('dir', [], {shell: true});