<!-- Thank you for reporting an issue. This issue tracker is for bugs and issues found within Node.js core. If you require more general support please file an issue on our help repo. https://github.com/nodejs/help Please fill in as much of the template below as you're able. Version: output of `node -v` Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify affected core module name If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. --> * **Version**: * * **Platform**: Windows * **Subsystem**: child_process <!-- Enter your issue details below this comment. --> https://github.com/nodejs/node/blob/master/lib/child_process.js#L444 has a fallback to use `cmd.exe` in case `process.env.ComSpec` is falsy. This is redundant, fragile, and generally covers-up an invalid state (`%ComSpec%` should always be defined and point to a valid shell executable). This code path should be deprecated according to the guide at https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#deprecations and https://github.com/nodejs/node/blob/master/doc/api/deprecations.md Ref: https://github.com/nodejs/node/pull/14149#discussion_r126477309
https://github.com/nodejs/node/blob/master/lib/child_process.js#L444 has a fallback to use
cmd.exein caseprocess.env.ComSpecis falsy.This is redundant, fragile, and generally covers-up an invalid state (
%ComSpec%should always be defined and point to a valid shell executable).This code path should be deprecated according to the guide at https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#deprecations
and https://github.com/nodejs/node/blob/master/doc/api/deprecations.md
Ref: #14149 (comment)