Run <binary> --version (synchronously, on the host) and extract the version string. Throws a plain Error when the output is unparsable; a missing binary propagates as the execSync error.
<binary> --version
Run
<binary> --version(synchronously, on the host) and extract the version string. Throws a plain Error when the output is unparsable; a missing binary propagates as the execSync error.