Try installing the active LTS version instead of latest with nvm install 16 (instead of nvm install node) as per the examples.

This was tested on the docker image amazonlinux:2 and correlates to what AWS CDK supports (ref)

Update

LTS has moved on for node, however, as per @djvg's comment, note there is a limitation with amazon linux 2 on glibc, so if requiring node > 16 will need to move to newer amazon linux version, eg: https://github.com/amazonlinux/amazon-linux-2023/blob/main/Release-Notes-Amazon-Linux-2022.0.20220728.0.md

Answer from Efren on Stack Overflow
🌐
GitHub
github.com › nodejs › node › issues › 52241
lib64/libm.so.6: version `GLIBC_2.27' not found (required ...
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: ...
Author   nodejs
Discussions

GLIBC_2.27 Not found
I'm using centos7 and I see the following message after doing choosenim update self. choosenim: /lib64/libc.so.6: version GLIBC_2.27' not found (required by choosenim)` Trying to go back to a versi... More on github.com
🌐 github.com
10
October 19, 2021
Sagemaker: OSError: /lib64/libm.so.6: version `GLIBC_2.27' not found
This error doesn't mean that you ... it's not at right version. Can you try ldd --version to see the one installed in your image? I believe that Amazon Linux 2 (which probably your underlying OS) has only 2,26. An upgrade to AL2023 will give you access to more recent glibc ... !ldd --version ldd (GNU libc) 2.26 Copyright (C) 2017 Free Software Foundation, ... More on repost.aws
🌐 repost.aws
1
0
September 26, 2024
Node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node)
Hi, When attempting any kind of nodejs build with Travis, I get the following errors: 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-linux-gn... More on travis-ci.community
🌐 travis-ci.community
1
0
March 1, 2023
Version `GLIBC_2.27' not found
Hi, I am trying to run Isaac Gym on a cluster of supercomputers based on Linux CentOS (between 7.6 and 7.8) and I’m getting the error "version `GLIBC_2.27’ not found ". This is due to my CentOS having glibc 2.17. Unfortunately, I cannot update glibc or the OS (as CentOS-8 comes with glibc ... More on forums.developer.nvidia.com
🌐 forums.developer.nvidia.com
0
0
January 16, 2021
🌐
Reddit
reddit.com › r/ubuntu › `glibc_2.27' not found error
r/Ubuntu on Reddit: `GLIBC_2.27' not found error
February 24, 2020 -

I want to install 4kvideodownloader application on my pc. I am using ubuntu 16.04 version.I can see the application symbol but it isn't opening. When i check that application it is showing to me `GLIBC_2.27' not found error:

/usr/lib/4kvideodownloader/4kvideodownloader-bin: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /usr/lib/4kvideodownloader/libQt5WebEngineCore.so.5)/usr/lib/4kvideodownloader/4kvideodownloader-bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/lib/4kvideodownloader/libQt5WebEngineCore.so.5)......

Can anyone helps to me?

🌐
Opalstack Community
community.opalstack.com › d › 1076-unable-to-install-node-18121-lts
Unable to install Node 18.12.1 (LTS) - Opalstack Community Forum
December 25, 2022 - Discussion for Opalstack web and email hosting, the managed hosting service for developers and businesses like yours!
🌐
GitHub
github.com › dom96 › choosenim › issues › 280
GLIBC_2.27 Not found · Issue #280 · dom96/choosenim
October 19, 2021 - I'm using centos7 and I see the following message after doing choosenim update self. choosenim: /lib64/libc.so.6: version GLIBC_2.27' not found (required by choosenim)` Trying to go back to a versi...
Author   dom96
🌐
AWS re:Post
repost.aws › questions › QUcnUjnTELTi2uKfZeFVjV7w › sagemaker-oserror-lib64-libm-so-6-version-glibc-2-27-not-found
Sagemaker: OSError: /lib64/libm.so.6: version `GLIBC_2.27' not found | AWS re:Post
September 26, 2024 - This error doesn't mean that you don't have glibc but probably that it's not at right version. Can you try ldd --version to see the one installed in your image? I believe that Amazon Linux 2 (which probably your underlying OS) has only 2,26.
🌐
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
October 30, 2024 - # If GLIBC is still missing, add a Dockerfile with the necessary libraries for Node and Scala compatibility # Dockerfile example: FROM hseeberger/scala-sbt:11.0.2_2.12.10_1.4.4 RUN apt-get update && \ apt-get install -y --no-install-recommends \ libc6=2.27-3ubuntu1.5 && \ rm -rf /var/lib/apt/lists/*
Find elsewhere
🌐
Travis CI Community
travis-ci.community › languages › node.js
Node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node) - Node.js - Travis CI Community
March 1, 2023 - Hi, When attempting any kind of nodejs build with Travis, I get the following errors: 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: vers…
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 28833118886162-GLIBC-2-27-not-found
GLIBC-2.27 not found – IDEs Support (IntelliJ Platform) | JetBrains
August 17, 2025 - I'm afraid this can not be easily done without risks. The real problem here is how to update glibc in an EOL OS rather than an IDE issue. I'd suggest you to update the OS to a newer version. Someone made it in below blog https://blog.51cto.com/ting0119/13815148 ... I found the solution — I had missed the --set-interpreter step. After adding it, the "glibc 2.27 not found" error no longer appears.
🌐
Ask Ubuntu
askubuntu.com › questions › 1193303 › glibc-2-27-not-found-ubuntu-16-04
glibc - GLIBC_2.27 not found Ubuntu 16.04 - Ask Ubuntu
December 2, 2019 - I've seen references to this problem here: askubuntu.com/questions/1143268/…. If you want to try it, here's the direct download link to v2.27: archive.ubuntu.com/ubuntu/pool/main/g/glibc/…. ... Just don't uninstall libc6 from your system. Do a dry run of apt-get purge instead and measure the risks. It is better not to mess with such packages because they will render the system completely unusable and unbootable.
🌐
NVIDIA Developer Forums
forums.developer.nvidia.com › robotics & edge computing › robotics - isaac › isaac gym
Version `GLIBC_2.27' not found - Isaac Gym - NVIDIA Developer Forums
January 16, 2021 - Hi, I am trying to run Isaac Gym on a cluster of supercomputers based on Linux CentOS (between 7.6 and 7.8) and I’m getting the error "version `GLIBC_2.27’ not found ". This is due to my CentOS having glibc 2.17. Unfortunately, I cannot update glibc or the OS (as CentOS-8 comes with glibc ...
Top answer
1 of 2
2
Multiple AWS service teams have compiled binaries for NodeJS v18.x for Amazon Linux 2 to use in their services. These service teams include ElasticBeanstalk and Cloud9. You can find references to these binaries in the CloudWatch logs related to ElasticBeanstalk and Cloud9 resources. While not officially supported by AWS, and only a specific version of NodeJS that has been compiled, you could borrow the NodeJS binary from the Cloud9 team and installon your Amazon Linux 2 based host. ``` ### download the NodeJS binary (x86 only) wget -nv https://d3rnber7ry90et.cloudfront.net/linux-x86_64/node-v18.17.1.tar.gz mkdir /usr/local/lib/node tar -xf node-v18.17.1.tar.gz mv node-v18.17.1 /usr/local/lib/node/nodejs ### Unload NVM, use the new node in the path, then install some items globally. echo "export NVM_DIR=''" >> /home/ec2-user/.bashrc echo "export NODEJS_HOME=/usr/local/lib/node/nodejs" >> /home/ec2-user/.bashrc echo "export PATH=\$NODEJS_HOME/bin:\$PATH" >> /home/ec2-user/.bashrc ### Reload environment . /home/ec2-user/.bashrc ### Verify NodeJS v18.x is operating node -e "console.log('Running Node.js ' + process.version)" ```
2 of 2
0
Hello. Unfortunately Amazon Linux2 does not support Nodejs18. If you want to use it on Amazon Linux2, you need to use Docker containers etc. I think you can use Amazon Linux 2023 as described in the document below. https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html https://repost.aws/questions/QUrXOioL46RcCnFGyELJWKLw/glibc-2-27-on-amazon-linux-2
🌐
Frontendclub
frontendclub.net › aws-amplify-specified-node-18-but-GLIBC-not-found-on-build
AWS Amplify - Specified Node 18 but GLIBC_2.27 or GLIBC_2.28 not found on build - Frontend Club
January 6, 2023 - If you have to use Node.js 18 for your build (ie. Gatsby 5) on AWS Amplify, you may have seen the error `GLIBC_2.27 not found`.
🌐
Google Groups
groups.google.com › a › chromium.org › g › chromium-dev › c › t_NCM98w6s0
Missing GLIBC_2.27 and GLIBC_2.29 on Amazon Linux 2 arm64
January 5, 2022 - The build builds against a debian ...t_scripts/install-sysroot.py via build/linux/sysroot_scripts/sysroots.json). It sounds like that sysroot is not compatible with Amazon Linux 2....
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 152594 › not-able-to-install-mssql-2019-database-on-linux-7
Not able to install MSSQL 2019 DATABASE on linux 7.8 (`GLIBC_2.27' not found ) - Microsoft Q&A
November 5, 2020 - /opt/mssql/bin/sqlservr: /lib64/libc.so.6: version GLIBC_2.27' not found (required by /opt/mssql/bin/sqlservr) /opt/mssql/bin/sqlservr: /lib64/libc.so.6: version GLIBC_2.18' not found (required by /opt/mssql/bin/../lib/libc++abi.so.1)
🌐
GitHub
github.com › google › docsy › issues › 1296
POSTCSS error: `GLIBC_2.27' not found (required by node) · Issue #1296 · google/docsy
October 27, 2022 - Hi all, I'm trying to deploy our docs to Amazon. I use the latest Node LTS. Getting this error as of today: POSTCSS: failed to transform "scss/main.css" (text/css): node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (r...
Author   google