Skip this error ==> ERROR: Only Node.js v8 or later is supported, got v0.10.32

Must-share information (formatted with Markdown):

  • which versions are you using : Scanner 4.4
  • what are you trying to achieve: Scan
  • what have you tried so far to achieve this : NA

I have one repo which has .go file and 1 .js file. when i scan it scans all go file with success status . however it gives below error.

ERROR: Only Node.js v8 or later is supported, got v0.10.32.
org.sonarsource.nodejs.NodeCommandException: Only Node.js v8 or later is supported, got v0.10.32.

Question: How sonarqube came to know that current Node.js verison is v0.10.32? and how to fix and ignore/skip (as i don’t have access to make change in repo)

Hello,

You can configure the Node executable using this property sonar.nodejs.executable.

Alex

I want to disable node.JS completely. It should not even check for Node.JS at all. could you please tell me how to do that ?

For this, you should look at https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/ and exclude from the scope of the analysis the files you don’t want.
I believe such config should work for you:

sonar.exclusions=**/*.js,**/*.ts

exclusion works !!! thanks for you prompt help.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.