O/S is Linux Mint 21.3 (fully up-to-date)
my IDE is VS-Code 1.98.2 (latest) with various Extensions
Getting Started with C++ using VS-Code as my IDE
I am just getting started on C++ programming using VS-Code as my IDE. This adventure into C++ is spawned by a need to better understand the Arduino (etc) ecosystem.
I followed some reasonable (or, so it seemed...) on-line advice to install Extensions for VS-Code deemed essential or very useful. These Extensions include 'Sonar Lint' (now re-branded as Sonar Qube) before attempting to write any C++ code. And, when I say "write", I mean, cutting-and-pasting textbook examples. I am, after all, a rank amateur.
I experienced several problems simultaneously, including errors in compiling and debugging those simplest 'hello world' examples, copied verbatim from reputable textbooks on C++ programming. One would assume that these textbook examples (literally!) should compile-and-run with no errors or other issues, whatsoever.
Of the several errors, I think I should first resolve the error message coming from Sonar Qube (aka, Sonar Lint), which is:
SonarQube for VS Code failed to analyze JSON code: Node.js runtime version 18.17.0 or later is required. Current version is 12.22.9.
It appears certain that Sonar Qube (aka, Sonar Lint) is not and will not run until I get node.js
updated
Within Linux Mint 21.3, node
(a Program, presumably node.js
) resides at /usr/bin/node
. Running node -v
from a terminal window confirms that it is, indeed, v 12.22.9
The Linux Mint Synaptic Package Manager ("SPM") isn't very helpful because there are many references to items with some connection to 'node' and none of these SPM entries refer to the original node.js
version number (they only refer to the Ubuntu packaging version numbers).
I am concerned that the currently installed version of node.js
(12.22.9), if forced to update in-situ, will conflict with the official Ubuntu / Mint O/S schema. Perhaps there is a way to provide Sonar Qube with the latest version of Node.js
that is "quarantined" from the rest of the Linux Mint installation.
Question:
How do I go about providing Sonar Qube with the version of node.js
that it requires for its ultimate happiness, without throwing the rest of my platform into chaos?