20

I am not able to do anything anymore. I keep getting the error Error: Unknown command: cask even though I have previously used a lot of different installations from this link: Homebrew cask option not recognized?

NONE OF THEM HELPED!

For example I get this output:

enter image description here

After the instance I want to apply this command: brew cask install cscreen to then go to cscreen -l. However, I keep getting the above error...

Please help. I want to use this because without it I am not able to work on a closed MacBook because when I close the monitor it goes back to the dreaded setting of 75Hz.

Regards!

Marchewek
  • 211
  • 1
  • 2
  • 4

3 Answers3

59

I was having a similar issue running brew cask install [...]. I am running macOS Catalina v10.15.7. I used brew install --cask [...] and it worked for me. In your case:

brew install --cask cscreen

effreety
  • 711
  • 4
  • 3
29

For anyone like me landing here where effreety's answer does not work, try whatever command you are trying to run without cask.

cask is no longer a brew command.

Frikster
  • 2,755
  • 5
  • 37
  • 71
  • 4
    `cask` is used to install GUI applications. Although it's no longer a command, it still can be used as an option as shown by @effreety. Just now, I installed Docker successfully using `brew install --cask docker` – HeroicHitesh Jun 11 '21 at 08:57
1

Run your brew command without "cask".

Example: Instead of brew cask install graphql-playground try brew install graphql-playground

Shah
  • 2,126
  • 1
  • 16
  • 21