when i trying install node js ver 18 on centos it’s show me this error
Error: Package: 2:nodejs-18.15.0-1nodesource.x86_64 (nodesource)
Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: 2:nodejs-18.15.0-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: 2:nodejs-18.15.0-1nodesource.x86_64 (nodesource)
Requires: libm.so.6(GLIBC_2.27)(64bit)
Error: Package: 2:nodejs-18.15.0-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: 2:nodejs-18.15.0-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
i installed gcc but it still give me error
2
Answers
See “Toolchain and Compiler Upgrades” in official doc of release 18, it requires glibs 2.28
2022-04-19, Version 18.0.0
You can install Node.js 18 or any other version using NVM.
Run this command to install NVM:
Close the terminal and reopen. To confirm that nvm is installed, run the command below:
To install Node.js 18, run below command:
Hope this helps!
Ref: How to Install a Specific Version of Node.js Using NVM