You might we facing a issue with NodeJS which is installled on ubuntu OS,

When you run node -v or pm2 list command getting error:- node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node).

Solution for GLIBC_2.28 not found (required by node)

I tried various solution from stack overflow from with, Finally One solution worked for me, just by running by below commands.

sudo apt-get remove nodejs
nvm i 16  
sudo apt-get install nodejs
sudo apt-get install npm

node -v

npm -v

nvm -v