Marchewek
Marchewek

Reputation: 211

Error: Unknown command: cask || despite the use of multiple instance trials

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!

Upvotes: 20

Views: 12678

Answers (3)

Shah
Shah

Reputation: 2894

Run your brew command without "cask".

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

Upvotes: 1

Frikster
Frikster

Reputation: 2905

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.

Upvotes: 29

effreety
effreety

Reputation: 711

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

Upvotes: 59

Related Questions