Find a Node.js executable in PATH that satisfies a semver range.
npm install node-exec-path
const { satisfiesSemverSync } = require('node-exec-path');
const execPath = satisfiesSemverSync('>=18.0');
console.log(execPath || 'No matching Node.js executable found in PATH');