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
Expanding on @Ardakilic's comment:
To be even more explicit and break down what is going on here:
Go here in your web browser:
https://raw.githubusercontent.com/Homebrew/homebrew-core/a806a621ed3722fb580a58000fb274a2f2d86a6d/Formula/icu4c.rb
Copy paste the contents into a text file named:
icu4c.rb
Run:
brew reinstall icu4c.rb
I just write this to make it clear it's only a text file being downloaded, not rocket surgery.
(I was stumped on this for a while until I looked at contents of the .rb files)