Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MAC : No available formula with the name "brew-cask"

Trying to install brew-cask after tapping caskroom/cask,

brew tap caskroom/cask
brew install brew-cask

But getting error,

$ brew install brew-cask
  Updating Homebrew...
  Error: No available formula with the name "brew-cask" 
  ==> Searching for a previously deleted formula (in the last month)...
  Error: No previously deleted formula found. 
  ==> Searching for similarly named formulae...
  This similarly named formula was found:
  brew-cask-completion ✔
  To install it, run:
  brew install brew-cask-completion ✔
  ==> Searching taps...
  ==> Searching taps on GitHub...
  Error: No formulae found in taps.

Tried brew cleanup, untapped caskroom/cask and reinstallation of brew-cask but no luck.

I installed, brew-cask-completion using brew install brew-cask-completion. And read somewhere brew-cask is deprecated. So what is the solution. I ignored it and installed the java open sdk. My question is, is it going to be a problem in future if I don't install it?

Thanks in advance!

like image 701
Rashmi Avatar asked Nov 17 '25 03:11

Rashmi


2 Answers

It happens because of corrupted core installation, actually you will give this error for installing any packages, you should fix the with:

rm -fr $(brew --repo homebrew/core)

Then install what ever you want, for me:

brew intall deno
like image 177
AmerllicA Avatar answered Nov 21 '25 09:11

AmerllicA


Try reinstalling it with these commands in this order:

brew uninstall brew-cask
brew untap caskroom/cask
brew tap caskroom/cask
brew install brew-cask
like image 42
omikes Avatar answered Nov 21 '25 08:11

omikes