This error happens when you install Node on an operating system that has a version of GLIBC that is lower than Node can support. For example, Node v18 supports GLIBC v2.7 or later. When you attempt to install Node v18.x on any Linux OS that has GLIBC v2.6 or lower, you will get such errors.

To see the version of GLIBC that your operating system has, execute the ldd command on the terminal:

Copy$ ldd --version

I can suggest three options to resolve this issue:

  1. Either install Node from source code. This will allow you to recompile
  2. Or install an older version of Node that your OS can support
  3. Or upgrade your Linux OS to a newer version.

Reference: Install Node from source code

Answer from Bruce Malaudzi on Stack Overflow
🌐
GitHub
github.com › nodejs › node › issues › 52241
Node.js is showing error "node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)" · Issue #52241 · nodejs/node
March 28, 2024 - check node --version cmd which ... GLIBC_2.27' 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 CXXABI_1.3.9' not found (required by node) node: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by node) node: /lib64/libc.so.6: version ...
Author   nodejs
🌐
Letscodepare
letscodepare.com › blog › nvm-installed-getting-glibc-and-glibcxx-error-on-linux
NVM installed, Getting GLIBC and GLIBCXX Error on Linux | Let's Code Pare
Install the following rpm package, which include the GLIBCXX library after installed. wget -q https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-4.8.2-16.3.el6.x86_64.rpm wget -q https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-devel-4.8.2-16.3.el6.x86_64.rpm wget -q https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-static-4.8.2-16.3.el6.x86_64.rpm
Discussions

node.js - Getting GLIBC_2.28 not found - Stack Overflow
I running the node -v command, getting the error: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) Is there a solution? More on stackoverflow.com
🌐 stackoverflow.com
RHEL 7.9 GLIBC Errors
Version v18.16.0 Platform Linux user@company.net 3.10.0-1160.80.1.el7.x86_64 #1 SMP Sat Oct 8 18:13:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bu... More on github.com
🌐 github.com
3
June 13, 2023
gcc - How to run node v20.x on CentOs 7.9? - Unix & Linux Stack Exchange
I've been stuck on this issue for too long. Basically I have a node v20.x app that I'd like to run on a CentOS 7.9 server. For reasons, we do not wish to upgrade the OS now but I'm sure there must ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
November 22, 2024
aws-lambda-nodejs /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
Hi there, I am experiencing an issue with (what I believe to be) the new amazon/aws-lambda-nodejs:16 docker image. When running my Dockerfile: FROM amazon/aws-lambda-nodejs:16 ARG AWS_ACCESS_KEY_ID ARG AWS_SECRET_ACCESS_KEY ARG AWS_REGIO... More on github.com
🌐 github.com
1
January 4, 2023
🌐
DEV Community
dev.to › abbazs › how-to-fix-issue-node-libx8664-linux-gnulibcso6-version-glibc228-not-found-required-by-node-3chb
How to fix issue "node: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.28' not found (required by node)"? - DEV Community
July 7, 2023 - The issue "node: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.28' not found (required by node)" typically occurs when attempting to run Node.js on a system that has an older version of the GNU C Library (GLIBC) installed.
🌐
GitHub
github.com › nodejs › node › issues › 48453
RHEL 7.9 GLIBC Errors · Issue #48453 · nodejs/node
June 13, 2023 - Now using node v18.16.0 (npm 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) $ node --version node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /l
Author   nodejs
Find elsewhere
🌐
Bobby Hadz
bobbyhadz.com › blog › node-glibc-not-found-required-by-node
node: version `GLIBC_2.28` not found (required by node) | bobbyhadz
April 5, 2024 - The error "node: version GLIBC_2.28 not found (required by node)" occurs when the node binary you're trying to install was built on a GLIBC-2.28 or more recent system.
🌐
Stack Exchange
unix.stackexchange.com › questions › 787053 › how-to-run-node-v20-x-on-centos-7-9
gcc - How to run node v20.x on CentOs 7.9? - Unix & Linux Stack Exchange
November 22, 2024 - Symlinking the built libstdc++.so.6.0.22 under /opt/glibc-2.28/lib if you don't want to define a shell var LD_LIBRARY_PATH=/opt/gcc-6.5.0/lib64 node for everytime running node:
🌐
Ask Ubuntu
askubuntu.com › questions › 1403763 › node-js-is-installed-but-not-working
command line - Node.js is installed but not working - Ask Ubuntu
Now using node v18.0.0 (npm v) Creating default alias: default -> node (-> v18.0.0) $ node -v node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by node) node: /lib/x86_64-...
🌐
GitHub
github.com › aws › aws-lambda-base-images › issues › 74
aws-lambda-nodejs /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) · Issue #74 · aws/aws-lambda-base-images
January 4, 2023 - #8 32.90 npm notice #8 32.90 npm ERR! code 1 #8 32.90 npm ERR! path /var/task/node_modules/mongodb-memory-server #8 32.90 npm ERR! command failed #8 32.90 npm ERR! command sh -c -- node ./postinstall.js #8 32.90 npm ERR! node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) #8 32.90 npm ERR! node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node) #8 32.90 #8 32.90 npm ERR!
Author   aws
🌐
GitHub
github.com › nodejs › node › issues › 46412
Node v18 on RHEL/OEL/CentOS version 7.x · Issue #46412 · nodejs/node
January 30, 2023 - ./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)
Author   nodejs
🌐
Medium
medium.com › @suyxx › getting-error-bb3cfc105c14
getting error >>>>. Downloading and installing node… | by suyash saurabh | Medium
August 3, 2019 - ######################################################################## 100.0% Computing checksum with sha256sum Checksums matched! node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node) node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by node) node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by node) node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by node) nvm is not compatible with the npm config “prefix” option: currently set to “” Run `nvm use — delete-prefix v12.7.0` to unset it.
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › beginner questions
[SOLVED] how to fix GLIBC_2.28/2.29 not found - Linux Mint Forums
Using linux mint 19.3 MATE Kernel ... (Ubuntu GLIBC 2.27-3ubuntu1.6) 2.27 node -v: 16.17.0 npm -v: 8.15.0 I want to install tree-sitter (https://github.com/tree-sitter/tree-sitter). The github page instructs to use: ... /home/me/.nvm/versions/node/v16.17.0/lib/node_modules/tree-sitter-cli/tree-sitter: /lib/x86_64-linux-gnu/libc.so.6: version ...
🌐
Cloudron
forum.cloudron.io › cloudron forum › support › cloudron on 18.04.5 - glibc_2.28 not found (required by node)
Cloudron on 18.04.5 - GLIBC_2.28 not found (required by node) | Cloudron Forum
July 17, 2023 - mkdir -p /usr/local/node-16.18.1 curl -sL https://nodejs.org/dist/v16.18.1/node-v16.18.1-linux-x64.tar.gz -o /tmp/node.tar.gz tar zxvf /tmp/node.tar.gz --strip-components=1 -C /usr/local/node-16.18.1 rm /tmp/node.tar.gz ln -sf /usr/local/node-16.18.1/bin/node /usr/bin/node ln -sf /usr/local/node-16.18.1/bin/npm /usr/bin/npm systemctl restart box
🌐
GitHub
github.com › nvm-sh › nvm › issues › 3517
Not able to use multiple node version (16 and above except 17) on my EC2 instance · Issue #3517 · nvm-sh/nvm
January 29, 2025 - $ nvm --version 0.40.1 $ nvm list ... -> v22.13.1 (-> N/A) $ nvm current none $ node --version 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) $ npm --version node: ...
Author   nvm-sh