skip to Main Content

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


  1. See “Toolchain and Compiler Upgrades” in official doc of release 18, it requires glibs 2.28

    2022-04-19, Version 18.0.0

    Login or Signup to reply.
  2. You can install Node.js 18 or any other version using NVM.

    Run this command to install NVM:

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
    

    Close the terminal and reopen. To confirm that nvm is installed, run the command below:

    nvm --version
    

    To install Node.js 18, run below command:

    nvm install 18
    

    Hope this helps!

    Ref: How to Install a Specific Version of Node.js Using NVM

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search