I had a weird issue today when trying to run node - I received this error:
$ node -v
node: error while loading shared libraries: libstdc++.so.6: 
cannot open shared object file: No such file or directory
I attempted to brew reinstall node and brew remove node; brew install node, neither of which helped.
I am on Aurora 40.20241019.0 (2024-10-20T04:43:42Z), and have been running Node without issues since April.
What solved it was running:
brew install gcc
I don’t know why Brew couldn’t handle this dependency itself. (I created this thread to help anyone searching this who might have the same issue.)