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!

6 Answers 6

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.

4
  • 9
    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 May 9, 2019 at 14:46
  • 5
    outdated, if you try to find the current answer, see the next @Chris answer
    – Deron Lee
    Mar 10, 2020 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, 2020 at 7:47
  • Please see my answer below for the proper method.
    – Nick
    Jun 9, 2021 at 21:48
46

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
5
  • 2
    This is the current answer now.
    – Deron Lee
    Mar 10, 2020 at 12:46
  • 2
    You can also run brew cask upgrade chromedriver if you want to upgrade an existing installation to the latest version.
    – abhchand
    Sep 1, 2020 at 16:58
  • 6
    Calling brew cask upgrade is deprecated. Use brew upgrade --cask chromedriver Oct 7, 2020 at 5:53
  • 1
    Please see my comment below for the most updated answer.
    – Nick
    May 3, 2021 at 19:36
  • 3
    also brew cask install is deprecated, gotta use brew install --cask
    – getName
    Jan 24, 2022 at 10:20
21

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!
1
  • Confirmed this still works as of February 2022.
    – Nick
    Feb 16, 2022 at 15:45
1

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

Worked for me

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
-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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.