Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.
时间: 2023-10-17 17:35:55 浏览: 139
这是一个错误信息,它表示"brew cask"不再是brew的一个命令,而是要使用"brew <command> --cask"来代替。这个错误信息是由于Homebrew在版本升级后对命令进行了更改所致。为了解决这个问题,您应该按照新的命令格式来安装软件包,即使用"brew <command> --cask"来代替以前的"brew cask"命令。如果您想升级已安装的过时应用程序,可以使用brew-cask-upgrade来完成,这是一个命令行工具,可以升级已安装的每个过时应用程序。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [【已解决】Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.](https://blog.csdn.net/Svik_zy/article/details/124652857)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [homebrew-cask-upgrade:用于升级Homebrew Cask安装的每个过时应用程序的命令行工具](https://download.csdn.net/download/weixin_42107491/16635958)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文