nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

Centos7 uses the n command to install nodejs 18.19.1, but runs with the following error message. #4346

Closed bbhxwl closed 3 weeks ago

bbhxwl commented 4 months ago

How should I upgrade?

[root@VM-0-17-centos bin]# node -v
node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node)
node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
[root@VM-0-17-centos bin]# 
marco-ippolito commented 4 months ago

Hi @bbhxwl, how did you install node? It seems you are missing some system libraries or have outdated version.

RedYetiDev commented 3 weeks ago

No response to @marco-ippolito's query

If you disagree, please re-open.

HaitamDevOps commented 1 week ago

Hello ! I have the same issue here when I followed steps of installing nodeJS from nodeSource for my Centos7 machine

[centos@localhost code-server-npm]$ node --version node: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by node) node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by node) node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node) node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node) node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node) node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by node)

Based on issue #2972 with title _node: /lib64/libm.so.6: version `GLIBC2.27' not found (required by node) the problem is due to no compatibility of Centos7 with these version of GLIBC

RedYetiDev commented 1 week ago

Hi! If you are experiencing similar issue when installing Node.js via https://nodejs.org, please verify you have the required binaries.

If you still experience the issue, please file a new issue with all relavent information.