Effect CommunityEC
Effect Community17mo ago
20 replies
Jérôme MARTIN

Windows Node.js Bug affects Platform Command module

Hi, I ran into a problem this morning with docgen and found out this was linked to a bug in windows when running Node.js version > 20.12.1 (see https://github.com/nodejs/node/issues/52554). Basically there has been a security patch which prevents you from spawning a command with its .cmd extension. The only solution for now seems to be to spawn it with the {shell: true} option. So this effects the Platform.Command module that no longer works on windows. One possible solution would be to have Command.make create a Command with shell:true instead of shell:false when in windows environment?
Was this page helpful?