diff --git a/test/parallel/test-cli-node-print-help.js b/test/parallel/test-cli-node-print-help.js index da10196a9e369e..8daf00278f8135 100644 --- a/test/parallel/test-cli-node-print-help.js +++ b/test/parallel/test-cli-node-print-help.js @@ -57,7 +57,7 @@ startPrintHelpTest(); // Test closed stdout for `node --help`. Like `node --help | head -n5`. (async () => { - const cp = spawn('node', ['--help'], { + const cp = spawn(process.execPath, ['--help'], { stdio: ['inherit', 'pipe', 'inherit'], }); cp.stdout.destroy();