Section: Events, Child Processes, and Workers
child_process.exec
javascript
javascript
import { exec } from "node:child_process";
exec("node -v", (err, stdout) => console.log(stdout));Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Events, Child Processes, and Workers