[CentOS] nodejs 18 on centos 7

Fri Jun 17 18:10:05 UTC 2022
Jerry Geis <jerry.geis at gmail.com>

On Fri, Jun 17, 2022 at 1:48 PM Jerry Geis <jerry.geis at gmail.com> wrote:

> I am currently running V14.19.3 of nodejs on Centos 7
>
> I found this article:
> https://computingforgeeks.com/install-node-js-on-centos-rhel-rocky-linux/
> to update to 18
>
> I import the repo just fine.
> when I do :
> yum -y install nodejs
>
> I get :
> Package 2:nodejs-14.19.3-1nodesource.x86_64 already installed and latest
> version
> Nothing to do
>
> how do I install 18?
>
>
> more  /etc/yum.repos.d/nodesource-el7.repo
> [nodesource]
> name=Node.js Packages for Enterprise Linux 7 - $basearch
> baseurl=https://rpm.nodesource.com/pub_18.x/el/7/$basearch
> failovermethod=priority
> enabled=1
> gpgcheck=1
> gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
>
> [nodesource-source]
> name=Node.js for Enterprise Linux 7 - $basearch - Source
> baseurl=https://rpm.nodesource.com/pub_18.x/el/7/SRPMS
> failovermethod=priority
> enabled=0
> gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
> gpgcheck=1
>
> jerry
>


So I downloaded teh rpm and tried
rpm -i ../Downloads/nodejs-18.4.0-1nodesource.x86_64.rpm
error: Failed dependencies:
libc.so.6(GLIBC_2.25)(64bit) is needed by nodejs-2:18.4.0-1nodesource.x86_64
libc.so.6(GLIBC_2.28)(64bit) is needed by nodejs-2:18.4.0-1nodesource.x86_64
libm.so.6(GLIBC_2.27)(64bit) is needed by nodejs-2:18.4.0-1nodesource.x86_64
libstdc++.so.6(CXXABI_1.3.9)(64bit) is needed by
nodejs-2:18.4.0-1nodesource.x86_64
libstdc++.so.6(GLIBCXX_3.4.20)(64bit) is needed by
nodejs-2:18.4.0-1nodesource.x86_64
libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed by
nodejs-2:18.4.0-1nodesource.x86_64

Where are these libraries for a CentOS 7 server ?

Jerry