Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I install node.js 18 on Centos 7 and do I need python 3 install too?

I'm not sure if node.js 18 supports centos 7 and is it a requirement to install python 3 for node.js 18?

like image 610
Zachary Armstrong Avatar asked Jan 02 '26 01:01

Zachary Armstrong


2 Answers

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.

like image 80
abbr Avatar answered Jan 03 '26 15:01

abbr


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.

like image 38
evendiagram Avatar answered Jan 03 '26 16:01

evendiagram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!