You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
});
The text was updated successfully, but these errors were encountered: