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

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:
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!

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

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.

Run your brew command without "cask".
Example:
Instead of brew cask install graphql-playground try brew install graphql-playground

Related

Error: `brew cask` Is No Longer When "brew cask install iterm2" Command Is Run

I want to configure my macOs terminal with zsh. After installing homebrew, when I am trying to install iterm2 running this command brew cask install iterm2, the error shows as like below:
Error: brew cask is no longer a brew command. Use brew <command> --cask instead.
May anyone suggest to solve it? Thanks in advance!
The following command should solve your problem
brew install --cask iterm2

elasticsearch-full is returing error while I am trying to install using homebrew

I am trying to install elasticsearch-full using homebrew. I am using the below command.
brew tap elastic/tap
brew install elastic/tap/elasticsearch-full
and it is returning bellow error.
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9
Error: No such file or directory - /usr/local/var/homebrew/linked/elasticsearch-full
Please find the java version,
can anyone help me to fix this. Thanks.
I just ran into this issue today. I found a solution in an issue comment in the elastic repo. I'll link the comment below, but here are the steps I took to fix this:
brew remove elasticsearch-full
brew untap elastic/tap
brew update -v
brew tap elastic/tap
brew update -v
brew install elasticsearch-full
You can do this with any other affected packages by adding the package names after elasticsearch-full
Here's the link to the original issue comment for credit:
https://github.com/elastic/homebrew-tap/issues/110#issuecomment-964778575

Why brew install returns "cask is unavailable" on terminal if homebrew's website shows a different information?

I am trying to install this software called Next browser. There is a page about it on brew.sh.
When I run the command displayed on homebrew's webpage on my Ubuntu 18.04 LTS terminal:
$ brew install --cask next
I get the following error message:
Updating Homebrew...
Error: Cask 'next' is unavailable: No Cask with this name exists.
Observation, I am able to sucessfully install other packages like:
brew install hello
Why is this happening?
Is there a way to fix this?
Casks install are only available on macOS because they install macOS-specific .app files.
This probably explain the error you get, although it could be made clearer.

I get this error Error: Unknown command: cask any ideas?

putting the command 'brew cask install adoptopenjdk8' gives me that error, any ideas?
Error: Cask adoptopenjdk8 exists in multiple taps:
homebrew/cask-versions/adoptopenjdk8
adoptopenjdk/openjdk/adoptopenjdk8
in Mac M1...
Try:
brew tap AdoptOpenJDK/openjdk first
then brew install --cask <version you want>
the tap allows you to stay with the release you want. Also, your command above may not work because AdoptOpenJDK8 isn't the latest version

How do I install the latest developer package for wine with homebrew? (wine-3.0-rc2)

When I type in:
brew install wine
That should install Wine 2.0.3, right? (the latest release)
But I want to install a specific version of wine: wine 3.0 rc2
What would the command to do this be if I'm using homebrew? I've tried
brew install wine-devel
But it gives me this error:
Error: No available formula with the name "wine-devel"
Any help? Thanks!
Currently wine-devel has been moved to caskroom/versions. Therefore in order to install wine-devel you have to
Tap caskroom/versions, by running brew tap caskroom/versions
Update homebrew (...just to be sure) by running brew update
Finally install wine-devel by running brew install caskroom/versions/wine-devel
caskroom/versions was moved to homebrew/cask-versions.
The following will work:
brew tap homebrew/cask-versions
brew install homebrew/cask-versions/wine-devel
You will be asked for your password.
Then you should be able to start executables as follows:
wine /path/to/app.exe
I was trying to install wine-devel, but ran into a similar problem. It seems that the answers here may each have been relevant on a different year, as the casks have moved around back and forth. So here's the latest on the situation, and some info on how to handle it in future.
The official instructions (as of 4th April 2020) say to run brew cask install wine-stable. However, that leads to an error:
$ brew cask install wine-stable
Error: Cask wine-staging exists in multiple taps:
homebrew/cask-versions/wine-staging
caskroom/versions/wine-staging
This means that two potential casks were found, each with the same name, yet each on a different repository, and Homebrew was unsure which one to install.
Running this command gave me a clue about what was going on:
$ brew tap caskroom/versions
Error: caskroom/versions was moved. Tap homebrew/cask-versions instead.
So I learned that you can untap third-party repositories, and untapped the one that the message seemed to advise not to tap WINE casks from.
$ brew untap caskroom/versions
Untapping caskroom/versions...
Untapped 156 casks (463 files, 56.7MB).
$ brew cask install wine-stable
... Success!
To install the development version just pass --devel
brew install --devel wine

Resources