Rocking chief
Rocking chief

Reputation: 1069

Brew install chromedriver not working?

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!

Upvotes: 39

Views: 41189

Answers (6)

Chris
Chris

Reputation: 1742

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

Upvotes: 48

whodini9
whodini9

Reputation: 1434

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

Worked for me

Upvotes: 1

Nick
Nick

Reputation: 898

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!

Upvotes: 25

Gaurab Kc
Gaurab Kc

Reputation: 851

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.

Upvotes: 47

Shawn Azdam
Shawn Azdam

Reputation: 6160

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

Upvotes: 0

DaddyMoe
DaddyMoe

Reputation: 1020

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.

Upvotes: -1

Related Questions