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

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

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

why can't I install watchman using brew command?

I'm trying to run a react native app and I've been told I need to download "watchman".
When I tried to run the command brew install watchman it gave this error:
Error: The following formula cannot be installed from bottle and must be
built from source.
python#3.9
Install the Command Line Tools for Xcode 11.3.1 from:
https://developer.apple.com/download/more/
Do I need to install Xcode or I'm just missing something? Is there any easier way to install watchman?
Thank you in advance.
If you don't mind, you can try installing directly from Facebook's Homebrew Tap:
brew tap facebook/fb
brew update
brew install facebook/fb/watchman

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

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

Get error while cask, brew-cask

I want install search engine elasticsearch in OS X 10.11.6
I read some blog
in my command line
brew install elasticsearch
and it show error(needs java)
elasticsearch: Java 1.7+ is required to install this formula.
You can install with Homebrew Cask:
brew install Caskroom/cask/java
You can download from:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
I flow this blog's solution
brew tap caskroom/cask
and show
Warning: Tap caskroom/cask already tapped.
second command
brew install brew-cask
it show error
Error: No available formula with the name "brew-cask"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
This formula was found in a tap:
Caskroom/cask/brew-cask-completion
To install it, run:
brew install Caskroom/cask/brew-cask-completion
==> You haven't updated Homebrew in a while.
A formula for brew-cask might have been added recently.
Run `brew update` to get the latest Homebrew updates!
and i install java
brew cask install java
but cask doesn't install
==> brew cask install Caskroom/cask/brew-cask-completion
Error: Unknown command: cask
and Some blog give me some advice
brew upgrade brew-cask
it show error
Error: No available formula with the name "brew-cask"
if fact I can't understand why my mac can't find cask...
please somebody helpme
Problem Solved I need to brew update
brew update
Try this works for me.
I thought it's brew update install package command,
brew install --cask java

Resources