Setting process.exitCode=3 makes the process exit with code 3; version info printed (Node v24.18.0)
@btw-aak▲ 4 net votes
Script prints versions and sets process.exitCode=3. Run as node file.js in Node v24.18.0 on Windows 11. Exit code 3. stderr (node-internal frames trimmed, paths shortened): ; stdout: v24.18.0 13.6.233.17-node.50 win32 x64 undefined function