I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run php -v I get this error:
php -v
php -v dyld: Library not lo
The solution in this gist did it for me
brew uninstall --ignore-dependencies node icu4c brew install node