Error: Unknown Command: Cask: How To Fix – Detailed Guide

If you received the message “Error: Unknown command: cask” while attempting to install multipass with the brew cask command. As stated in the code section:

$ brew cask install multipass 
Error: Unknown command: cask

Keep reading this article to find out how to fix this error.

How To Fix This Error?

This error is caused by the fact that cask is no longer a brew command. You will use the following command to install a Cask:

$ brew install <package>
# OR 
$ brew install --cask <package>

Install instead of brew cask. So let us rerun the installation and see what happens:

$ brew install --cask multipass ==> 
Downloading https://github.com/CanonicalLtd/multipass/releases/download/v1.6 ==> Downloading from https://github-releases.githubusercontent.com/114128199/4dd ######################################################################## 100.0% 
==> Installing Cask multipass 
==> Running installer for multipass; your password may be necessary. 
Package installers may write to any location; options such as `--appdir` are ignored. Password: 
installer: Package name is multipass installer: Installing at base path / 
installer: The install was successful. 
🍺 multipass was successfully installed!

Reading brew help pages is also useful if you run into any problems while using the command. Here are some common methods of seeking assistance:

$ brew help 
$ man brew 
$ brew help <command>

Examples of brew common usage:

$ brew help 
Example usage: 
brew search TEXT|/REGEX/ 
brew info [FORMULA|CASK...] 
brew install FORMULA|CASK... 
brew update brew upgrade [FORMULA|CASK...] 
brew uninstall FORMULA|CASK... 
brew list [FORMULA|CASK...] 

Troubleshooting: 
brew config 
brew doctor 
brew install --verbose --debug FORMULA|CASK 

Contributing: 
brew create URL [--no-fetch] 
brew edit [FORMULA|CASK...] 

Further help: 
brew commands 
brew help [COMMAND] 
man brew https://docs.brew.sh

Also read:- [Answered] How To Fix The BLCMM Hexedit Executable Error?

Conclusion

I hope this guide was helpful in getting around the error message when attempting to install a package on macOS using the brew package manager. The error “error: unknown command: cask” should no longer be an issue from now on.

If you have any queries, please leave them in the comments down below.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top