Version, that worked: [INFO] SonarQube version: 8.0.0.52135
Version, that has this issue again: [INFO] SonarQube version: 8.0.0.52293
The problem started happening at this timestamp or a bit before: Jan 29, 2024 11:48 AM (UTC+2:00)
Error (same as in the above topic):
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project services: Error while running Node.js. A supported version of Node.js is required for running the analysis of JS/TS files. Please make sure a supported version of Node.js is available in the PATH. Alternatively, you can exclude JS/TS files from your analysis using the ‘sonar.exclusions’ configuration property. See the docs for configuring the analysis environment: https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/languages/javascript-typescript-css/: Provided Node.js executable file does not exist. → [Help 1]
I managed to fix this by removing “sonar.nodejs.executable” from pom.xml. It had an incorrect path. Now it uses the default node installed on the system. But still, the problem started with the 8.0.0.52293. So from my point of view this can be closed.
I have met the same issue and tried the proposed solution, but it doesn’t work, the error is: “Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project services: Error while running Node.js. A supported version of Node.js is required for running the analysis of JS/TS files. Please make sure a supported version of Node.js is available in the PATH or an executable path is provided via ‘sonar.nodejs.executable’ property. Alternatively, you can exclude JS/TS files from your analysis using the ‘sonar.exclusions’ configuration property. See the docs for configuring the analysis environment: https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/languages/javascript-typescript-css/: Error when running: ‘node -v’. Is Node.js available during analysis?: Cannot run program “node”: error=2, No such file or directory → [Help 1]”