孤独时代的Joker
2021-02-08 22:00
采纳率: 100%
浏览 14.7k

mac上通过brew cask安装软件提示:Error: Unknown command: cask

mac系统big sur 11.1,mac上通过brew cask安装软件提示:Error: Unknown command: cask,再次安装cask提示:caskroom/cask was moved. Tap homebrew/cask instead.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • Amllng 2021-02-11 12:27
    已采纳

    昨天安装也遇到了这个问题,我看了homebrew-cask的github介绍,有这么一句:To start using Homebrew Cask, you just need Homebrew installed.

    我就尝试用brew search typora进行了搜索,可以直接搜索到,然后我就执行brew install typora,出现下面的情况:

    brew install typora
    ==> Tapping homebrew/cask
    Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'...

    它是在clone homebrew-cask,所以我手动去创建了目录,换了源进行了下载:

    k@Mini homebrew-cask % pwd
    /opt/homebrew/Library/Taps/homebrew/homebrew-cask
    k@Mini homebrew-cask % git clone git://mirrors.ustc.edu.cn/homebrew-cask.git /opt/homebrew/Library/Taps/homebrew/homebrew-cask
    Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'...
    remote: Enumerating objects: 600722, done.
    remote: Total 600722 (delta 0), reused 0 (delta 0)
    Receiving objects: 100% (600722/600722), 249.20 MiB | 6.49 MiB/s, done.
    Resolving deltas: 100% (428695/428695), done.
    

    下载完成后,我就又去尝试了一下安装:

    k@Mini homebrew-cask % brew install typora                   
    ==> Downloading https://www.typora.io/download/Typora-0.9.9.36.2.dmg
    ######################################################################## 100.0%
    ==> Installing Cask typora
    ==> Moving App 'Typora.app' to '/Applications/Typora.app'
    🍺  typora was successfully installed!

    到这里安装成功了,以后应该并用brew cask命令去安装了,直接用brew 就可以了.希望可以帮到你.

    点赞 打赏 评论
  • ##JIN## 2021-02-25 10:01
    点赞 1 打赏 评论
  • 歇歇 2021-02-09 00:41

    要使用brew cask它,必须先安装它,这是brew的扩展,不是系统的。

    点赞 打赏 评论
  • 歇歇 2021-02-09 00:42

    要安装它,你需要运行brew install caskroom/cask/brew-cask

    https://github.com/Homebrew/homebrew-cask

    https://buytoplikes.com/caskroom/

    这里可以下载

    点赞 打赏 评论
  • 歇歇 2021-02-09 15:04

    你要安装cask 

    我提供了下载地址和安装命令

    剩下的还要什么教程?

    点赞 打赏 评论

相关推荐 更多相似问题