However, after sonarqube update to 10.5, I can not test java script.
I tested some environment cases:
in node 16: Unsupported Node.JS version detected 16.20.2.
in node 17: Unsupported Node.JS version detected 17.9.1
in node 18: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28’ not found (required by node)
I believe GLIBC_2.28 doesn’t work on ubuntu 18.04.
Javascript analysis requires NodeJS 18+ (recommended 20+), which doesn’t support Ubuntu 18.04 (which is itself out of mainstream support for almost a year). Ubuntu 20.04 supports NodeJS 18+.
End of support of Node.js 16 in the scanner environment
Node.js 16 is no longer supported as a scanner runtime environment. If you’re using a custom Node.js installation, we recommend the latest LTS version, currently v20
Is there anything in particular keeping you on this old version of Ubuntu?