node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found

Total
0
Shares

You get node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node) error when you have installed node which is built for different ubuntu version.

Solution

1. Use nodesource binary to automatically select the correct version of node for your ubuntu.

2. Remove your node installation and install using nvm –

sudo apt-get remove nodejs
nvm install 16.15.1

This will resolve your error