I'm not sure if node.js 18 supports centos 7 and is it a requirement to install python 3 for node.js 18?
Starting v18, Node.js no longer supports centos 7 and a few other Linux distros due to glibc version incompatibility. See https://github.com/nodejs/node/issues/43246.
2024 update: it appears that this is possible using github.com/nodejs/unofficial-builds (source). On the target system check the glibc version:
$ ldd --version
ldd (GNU libc) 2.17
And then pull the needed archive from unofficial-builds.nodejs.org/download/release (e.g. node-v18.18.2-linux-x64-glibc-217.tar.gz).
I can't vouch for this method since this is the point I surrender and stick with the node16 release in RHEL7 epel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With