Reputation: 153
sonarlint version: 6 , sonarqube version 9.2 , nodejs 16 and configuration : Node.js path is C:\programFile\nodejs but again plaese configure nodejs path in sonarlint setting.
Upvotes: 8
Views: 23527
Reputation: 941
Either, configure the Sonar Plugin to use a newer Node install. (Ctrl+, sonarlint.pathToNodeExecutable
)
Or, switch to an older version of the Sonar Plugin plugin that's compatible with your existing Node install.
Extensions: Auto Update
)Upvotes: 1
Reputation: 1036
I had this issue on my VSCode SonarLint failed to analyze JSON code: Node.js runtime version 18.17.0 or later is required. Current version is 18.14.0.
I updated the settings available on sonarlint.pathToNodeExecutable
and added this path (Mac): /home/myname/.nvm/versions/node/v20.11.0/bin/node
Upvotes: 3
Reputation: 121
I solved it by setting the path to C:\Program Files\nodejs\node.exe
on Sonar lint configuration.
Upvotes: 8