Open alexedtionweb opened 1 year ago
Same problem. It only worked with Node 14.
This issue is because the environment hasn't been created yet when the spawn function is called. This issue can be resolved ensuring that the env = Object.create has been created before the spawn.
async function passthru...
const env = Object.create(process?.env || {});
console.log("Creating child process..."); // My test, new line created.
const child = spawn(exe, args, {
...options,
shell: true,
});
@fakereto where do we put that part?
same issue here