Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // make a clone of process.env, you wouldn't wanna mess around with the original
- let env = Object.assign({}, process.env, {MY_ENV1: 'value', MY_ENV2: 'value2'});
- child_process.exec("command", {env: env}, (error, stdout, stderr) => {});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement