After upgrading to Node v.10.9.0 via Homebrew the following error message was thrown from PHP:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Reinstall PHP to fix, for me that's:
brew reinstall php@7.1
I had the same issue here, running
brew reinstall icu4cError: Calling Installation of icu4c from a GitHub commit URL is disabled! Use 'brew extract icu4c' to stable tap on GitHub instead.The solution for me was to run it while being in php 7.2, then switch back to 7.1:
brew install php@7.2brew unlink php@7.1brew link php@7.2 --forcebrew reinstall icu4cbrew unlink php@7.2brew link php@7.1 --force