morgangraphics / ansible-role-nvm

Installs NVM & Node.js on Debian/Ubuntu and RHEL/CentOS
MIT License
99 stars 29 forks source link

node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) #38

Closed morgangraphics closed 1 year ago

morgangraphics commented 1 year ago

Describe the bug This is an issue with differing versions of Node and Ubuntu, not specifically an issue with NVM. However, this issue presents itself when running the role with the default --lts release on an OS that doesn't have the correct version of GLIBC e.g. Node 18.x and Ubuntu 18

Expected behavior That the --lts version of Node work properly

To Reproduce

  roles:
      - role: ansible-role-nvm

Shell [e.g. bash, dash, ksh, tcsh, zsh]

Desktop (please complete the following information):

morgangraphics commented 1 year ago

I've added this bug because it it likely to come up and I'll reference it in the documentation

There are three options for solving the above issue

  1. Downgrade the LTS version of node
    - role: ansible-role-nvm
      nodejs_version: "gallium"
  2. Upgrade the Operating System to 19+
  3. Build the GLIBC library yourself