Brew install chromedriver not working?

Update: This answer has been outdated. Please follow the answer from @Chris, which is now the correct answer.

After tapping caskroom/cask by using brew tap caskroom/cask, install chromedriver using brew cask install chromedriver. You can see other commands using brew cask help.


Update: This answer has been outdated. Please follow the answer from @Nick Predey

You can install it by running:

brew tap homebrew/cask

brew cask install chromedriver

The previous answers using brew cask etc. did not work for me.

As of May 2021, the following worked for me using homebrew:

brew install chromedriver

Which is confirmed by:

==> Downloading https://chromedriver.storage.googleapis.com/90.0.4430.24/chromed
######################################################################## 100.0%
==> Installing Cask chromedriver
==> Linking Binary 'chromedriver' to '/usr/local/bin/chromedriver'
🍺  chromedriver was successfully installed!