Node.js Error when running sonarqube after putting up a pull request

I’ve been trying to run sonarqube whenever travis runs as well, and I’ve been getting the following error:

Error when running: ‘node -v’. Is Node.js available during analysis?

When I check sonarcloud.io, it says that “JavaScript and/or TypeScript rules were not executed. Error when running: ‘node -v’. Is Node.js available during analysis?”.

Is there a way for ‘node -v’ to not be run at all, since I would not like the JavaScript and/or TypeScript files to be analyzed anyways?

Hello @MelodyCheng99,

If you don’t want JS and TS files to be analyzed, you must explicitly exclude them (see the doc if needed). If the scanner sees them, he will pass them to the JS/TS analyzer, which needs nodejs to run.