Skip Node.js installation if available on local machine
If Node.js is available on the local machine (the node
command) and it matches the version requested by the plugin, the Node.js installation should be skipped. This saves having to download Node.js in a CI environment where it may already be available.
We could also consider having an configuration parameter that allows the download to be forcefully turned off. In this case, the plugin should assume the global node, npm, and npx commands are available.
To find this logic, see https://gitlab.com/antora/gradle-antora-plugin/-/blob/main/src/main/java/org/antora/gradle/AntoraPlugin.java?ref_type=heads#L247-307
Adding this logic also allows the latest stable version of Node.js to be computed automatically.