Brew install chromedriver not working?

Rocking chief picture Rocking chief · Apr 29, 2018 · Viewed 19.8k times · Source

I am using MacOS, when I tried to install chromedriver using homebrew

brew install chromedriver

I get:

Error: No available formula with the name "chromedriver" 
It was migrated from homebrew/core to caskroom/cask.
You can access it again by running:
brew tap caskroom/cask

I typed brew tap caskroom/cask but chromedriver is still not installed. Can someone please help me on this? Thanks!

Answer

Gaurab Kc picture Gaurab Kc · Apr 30, 2018

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.