ERROR: CSS rules were not executed. Error when running: 'node -v'. Is Node.js available during analysis? org.sonarsource.nodejs.NodeCommandException: Error when running: 'node -v'. Is Node.js available during analysis?

Hi All,

When I’m configuring SonarQube in Azure devops pipeline getting below errors and we don’t have any node.js files in our sourcse code we have source code onnly .NET. C++ and SQL. Could you anyone help mw how to fix this.

I have tried this still no luck
sonar.exclusions=**/*.ts,**/*.js,**/*.java,**/*.vb,**/*.xml,**/*.css

ERROR: CSS rules were not executed. Error when running: ‘node -v’. Is Node.js available during analysis? org.sonarsource.nodejs.NodeCommandException: Error when running: ‘node -v’. Is Node.js available during analysis? at org.sonarsource.nodejs.NodeCommand.start(NodeCommand.java:83) at org.sonarsource.nodejs.NodeCommandBuilderImpl.getVersion(NodeCommandBuilderImpl.java:196) at org.sonarsource.nodejs.NodeCommandBuilderImpl.checkNodeCompatibility(NodeCommandBuilderImpl.java:169) at org.sonarsource.nodejs.NodeCommandBuilderImpl.build(NodeCommandBuilderImpl.java:144) at org.sonar.css.plugin.server.CssAnalyzerBridgeServer.initNodeCommand(CssAnalyzerBridgeServer.java:133) at org.sonar.css.plugin.server.CssAnalyzerBridgeServer.startServer(CssAnalyzerBridgeServer.java:101) at org.sonar.css.plugin.server.CssAnalyzerBridgeServer.startServerLazily(CssAnalyzerBridgeServer.java:153) at org.sonar.css.plugin.CssRuleSensor.execute(CssRuleSensor.java:99) at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48) at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85) at

Greetings @SrinivasP,

How did you add the exclusions into your pipeline?

Can you provide the debug-level logs by adding sonar.verbose=true to the extraProperties key in the SonarQubePrepare task of your pipeline.yml and share your pipeline.yml file?

Please double-check that you have no CSS files in your project also.

Joe