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 is failing with error Error: node --version node: /lib64/libm.so.6: version 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 ...
Author   nodejs
Discussions

node.js - /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) - Stack Overflow
When I push the code to Github it automatically builds it and start the application on AWS through CodeDeploy with a application_start.sh script file that has the following code: #!/bin/bash #give 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
Install error `node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)`
bash -c "$(curl -fsSL ...========================== ℹ️ System: Linux 3.10.0-693.el7.x86_64 ℹ️ Shell: bash node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by node) node: ... More on github.com
🌐 github.com
1
April 6, 2026
Error when trying to use a node project
whenever i try to make a node project, it keeps showing this error in the logs node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node) im not sure if i did anything specifically wrong, but when i make or modify any project i have, it keeps doing that. my project ... More on support.glitch.com
🌐 support.glitch.com
1
0
May 10, 2023
🌐
Tech Rescue
blog.nodejslab.com › how-to-solve-issues-when-installing-nodejs-18-15-0
How to solve issues when installing NodeJS 18.15.0
April 4, 2023 - It seems that the problem could be solved by updating GLIBC which makes more sense than downgrading the NodeJS version (as everyone says on the Internet). I found a link (listed below) with a very good analysis of the situation.
🌐
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.27 or more recent system. To solve the error, install a Node.js version that is compatible with your ...
🌐
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
🌐
tutorialpedia
tutorialpedia.org › blog › installing-node-lib64-libm-so-6-version-glibc-2-27-not-found-required-by-node-error-on-linux
Fixing '/lib64/libm.so.6: version `GLIBC_2.27' not found' Error When Installing Node.js on Linux: Next Steps Guide — tutorialpedia.org
If you can’t upgrade your OS or GLIBC, the simplest fix is to use a Node.js version that works with your current GLIBC. First, confirm your system’s GLIBC version. Run: strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_ | tail -n 1 # For Debian/Ubuntu # OR (for RHEL/CentOS) strings /lib64/libc.so.6 | grep GLIBC_ | tail -n 1
🌐
GitHub
github.com › QwenLM › qwen-code › issues › 2926
Install error `node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)` · Issue #2926 · QwenLM/qwen-code
April 6, 2026 - bash -c "$(curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh)" -s --source qwenchat ========================================== Qwen Code Installation Script ========================================== ℹ️ System: Linux 3.10.0-693.el7.x86_64 ℹ️ Shell: bash node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib64/libc.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
Author   QwenLM
🌐
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
node: /lib64/libc.so.6: version `GLIBC_2.16' 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.14' not found (required by node)
🌐
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
🌐
Travis CI Community
travis-ci.community › deployment
Deployment Fails with node 20 - Deployment - Travis CI Community
March 21, 2024 - In an attempt to deploy to npm with Node 20 (which also happens to be the latest LTS version), I’m getting the following error message: t3.83s$ nvm install 20 node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' …
🌐
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 - Node.js has a dependency on a specific GLIBC version (in this case, version 2.28 or higher), and if the system's GLIBC version is older, it will result in this error.
🌐
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-...
🌐
Medium
medium.com › @python-javascript-php-html-css › fixing-the-node-js-glibc-2-27-error-on-github-actions-upload-artifact-and-checkout-problems-cb5f76d3400b
Fixing the Node.js GLIBC_2.27 Error on GitHub Actions: Upload-Artifact and Checkout Problems | by Denis Bélanger 💎⚡✨ | Medium
October 30, 2024 - For more advanced control, the third script introduces a dynamic installation of the specific GLIBC version needed. By using an apt-get command to explicitly install libc6 with version 2.27, this solution is suitable for workflows that may require varied or changing dependencies over time.
🌐
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:
🌐
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!
Author   aws