Newer versions of JS and TS analyzers use run-node, which does its best to locate node wherever it can be on developer boxes.
This being said, I kind of agree that a publicly available property in SonarLint or in the analyzers would provide a more predictable user experience.