Solution :
I you are facing above error then you sould try below command
brew switch icu4c 62.1 Note : This command will only work if you have already installed the 62.1 in the past. If you don’t have it then you need to follow detailed procedure as given below:
The first step is to deep clone the Homebrew repo. It will take some time:
git -C $(brew --repo homebrew/core) fetch --unshallow
brew log icu4c use this command to track down the commit that references the 62.1.
Then you should execute the commands exactly as shown below:
cd $(brew --repo homebrew/core)
git checkout 575eb4b -- Formula/icu4c.rb
brew uninstall --ignore-dependencies icu4c
brew install icu4c
Now you should be having the correct version of your dependency. Now just to cleanup the modified recipe execute below command.
git reset && git checkout
Now your issue must be resolved.