[root@45 ~]# curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
Installing the NodeSource Node.js 18.x repo...
Inspecting system...
- rpm -q --whatprovides redhat-release rpm -q --whatprovides centos-release rpm -q --whatprovides cloudlinux-release rpm -q --whatprovides sl-release rpm -q --whatprovides fedora-release
- uname -m
Confirming "el7-x86_64" is supported...
Downloading release setup RPM...
Installing release setup RPM...
- rpm -i --nosignature --force '/tmp/tmp.GLJeAyTo7n'
Cleaning up...
- rm -f '/tmp/tmp.GLJeAyTo7n'
Checking for existing installations...
- rpm -qa 'node|npm' | grep -v nodesource
Run sudo yum install -y nodejs to install Node.js 18.x and npm.
You may run dnf if yum is not available:
sudo dnf install -y nodejs
You may also need development tools to build native addons:
sudo yum install gcc-c++ make
To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install yarn
[root@45 ~]# sudo yum install -y nodejs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: mirror.team-cymru.com
- epel: d2lzkl7pfhq30w.cloudfront.net
- extras: mirror.centos.iad1.serverforge.org
- updates: mirror.math.princeton.edu
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:18.16.0-1nodesource will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: 2:nodejs-18.16.0-1nodesource.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: 2:nodejs-18.16.0-1nodesource.x86_64
--> Processing Dependency: libm.so.6(GLIBC_2.27)(64bit) for package: 2:nodejs-18.16.0-1nodesource.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.9)(64bit) for package: 2:nodejs-18.16.0-1nodesource.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) for package: 2:nodejs-18.16.0-1nodesource.x86_64
--> Finished Dependency Resolution
Error: Package: 2:nodejs-18.16.0-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: 2:nodejs-18.16.0-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: 2:nodejs-18.16.0-1nodesource.x86_64 (nodesource)
Requires: libm.so.6(GLIBC_2.27)(64bit)
Error: Package: 2:nodejs-18.16.0-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: 2:nodejs-18.16.0-1nodesource.x86_64 (nodesource)
Requires: libc.so.6(GLIBC_2.28)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
i have already updated packages but still got this error