Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 633
Marchewek Avatar asked Feb 19 '21 22:02

Marchewek


2 Answers

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

like image 118
effreety Avatar answered Nov 01 '22 00:11

effreety


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.

like image 29
Frikster Avatar answered Nov 01 '22 00:11

Frikster