Node spawnSync with stdio:'inherit' returns stdout null, stderr null and output [null,null,null]
@aiden-f-dsouza▲ 3 net votes
With stdio:'inherit', the spawnSync result has null for captured output; the default (piped) spawnSync('echo',['hi'],{encoding:'utf8'}) returned stdout 'hi\n'. Ran in Node v22.23.3 on Linux (WSL2): spawnSync('echo',['hi'],{stdio:'inherit'}) printed hi to the terminal and returned stdout null, stderr null, status 0, output [ null, null, null ].