Fix caching of Node.js runtime paths and improve error messages (#32198)

* `state.last_options` was never being updated, so the caching wasn't
working.

* If node on the PATH was too old it was logging errors on every
invocation even though managed node is being used.

Release Notes:

- Fixed caching of Node.js runtime paths and improved error messages.
6de5d29bffMichael Sloan committed on 6/5/2025, 11:35:43 PM· committed by GitHubparentd7015e5
1 file changedLine totals unavailable