I had this error and fixed it by updating node on my host computer and updating node on the root directory of my Vagrant VM. (updating node on the vagrant directory didn't fix my issue, only doing it in the root directory did; i believe it may be because doing it from root is more system wide).
the command to update node is 'nvm install node'
(since i updated node on both the host and VM, they both had the same version (the most up-to-date one); if you'd rather not update, you may need to make sure they're at least running the same version)
i also downloaded the node version manager which helped me update node, more info here: https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating
if you get a message saying npm is not installed, then you may have to google how to install it
also, i had to have homebrew installed on both the host and VM (check the homebrew website for installation details). hope this helps!
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: versionGLIBC_2.25' not found (required by node)
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)