Check out example codes for "Library not loaded: /usr/local/opt/icu4c/lib/libicuio.64.dylib Referenced from: /usr/local/bin/php". It will help you in understanding the concepts better.

Code Example 1

brew uninstall --ignore-dependencies node icu4c
brew install node

Learn ReactJs, React Native from akashmittal.com