38

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!

Rocking chief
  • 1,039
  • 3
  • 17
  • 31

6 Answers6

47

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.

Brad Parks
  • 66,836
  • 64
  • 257
  • 336
Gaurab Kc
  • 841
  • 9
  • 9
  • 10
    Homebrew is wonderful to use but it's so hard to remember these beer related metaphors and intuitively realize what to do. What does tapping a caskroom / cask even mean in this context? Yes, they have a page explaining it but it's not _intuitive_ – user2490003 May 09 '19 at 14:46
  • 5
    outdated, if you try to find the current answer, see the next @Chris answer – Deron Lee Mar 10 '20 at 12:47
  • 1
    Sorry but I wish this answer will be deleted or at least edited and mention the right answer.. – Mosh Feu Jul 19 '20 at 07:47
  • Please see my answer below for the proper method. – Nick Jun 09 '21 at 21:48
47

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
Chris
  • 1,692
  • 2
  • 17
  • 21
22

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!
Nick
  • 823
  • 2
  • 10
  • 22
1

brew tap homebrew/cask && brew install --cask chromedriver

Worked for me

whodini9
  • 1,434
  • 13
  • 18
0

In case you get the following error:

Error: Cask chromedriver-beta exists in multiple taps:
  homebrew/cask-versions/chromedriver-beta
  caskroom/versions/chromedriver-beta

untap the other cask:

$ brew untap caskroom/versions

Then follow the @Chris' answer:

$ brew cask install chromedriver
Shayan Amani
  • 5,787
  • 1
  • 39
  • 40
-1

Copy the below command and execute to download the latest script

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

Install chromedriver using brew

brew cask install chromedriver

Be sure to checkout updates to brewinstall if the commands get changed in the feature.

DaddyMoe
  • 990
  • 1
  • 14
  • 20