Run a one-liner directly from the shell.
Section: Basics and Invocation
Execute inline JavaScript
bash
bash
node -e "console.log(process.version)"Explanation
Good for quick checks, shell automation, and CI probes.
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 Basics and Invocation