Error: caskroom/cask was moved. Tap homebrew/cask-cask instead

Error: caskroom/cask was moved. Tap homebrew/cask-cask instead

我尝试在 MacOs Catalina

上完成安装过程 Github

第一步在终端执行:

cd ~/
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash

但是我得到错误:

Error: caskroom/cask was moved. Tap homebrew/cask-cask instead.

然后我尝试了:

brew tap caskroom/cask

但是我得到了同样的错误。你有什么建议吗?

你不再需要安装 cask,你只需要 homebrew。尝试使用任何 cask 命令

好的,我明白了,只需输入brew cask,然后等待...

MyMacBook-Pro:homebrew-core adam$ brew cask
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 3581, done.
remote: Counting objects: 100% (3581/3581), done.
remote: Compressing objects: 100% (3573/3573), done.
remote: Total 3581 (delta 23), reused 578 (delta 6), pack-reused 0
Receiving objects: 100% (3581/3581), 1.19 MiB | 18.00 KiB/s, done.
Resolving deltas: 100% (23/23), done.
Tapped 1 command and 3470 casks (3,586 files, 3.9MB).
Homebrew Cask provides a friendly CLI workflow for the administration
of macOS applications distributed as binaries.

Commands:

    --cache    display the file used to cache the Cask
    audit      verifies installability of Casks
    cat        dump raw source of the given Cask to the standard output
    create     creates the given Cask and opens it in an editor
    doctor     checks for configuration issues
    edit       edits the given Cask
    fetch      downloads remote application files to local cache
    home       opens the homepage of the given Cask
    info       displays information about the given Cask
    install    installs the given Cask
    list       with no args, lists installed Casks; given installed Casks, lists staged files
    outdated   list the outdated installed Casks
    reinstall  reinstalls the given Cask
    style      checks Cask style using RuboCop
    uninstall  uninstalls the given Cask
    upgrade    upgrades all outdated casks
    zap        zaps all files associated with the given Cask

See also "man brew-cask"

从自制软件而不是酒桶中获取:

brew tap homebrew/cask-fonts

//这段代码错误:

brew tap caskroom/fonts
Error: caskroom/fonts was moved.

//正确的代码。

brew tap homebrew/cask-fonts
brew cask install font-fira-code
brew install --cask font-fira-code (the new working way)

我们开始了。

brew install alfred

我遇到了同样的问题,必须执行以下操作...

  1. 正在安装 cask
echo "installing caskroom"
brew tap caskroom/cask;
  1. 然后我就可以正常安装应用程序了(例如 Java)
echo "installing java"
brew cask install java;
java -version;

您现在不需要安装cask。但是命令发生了一些变化。比如如果要安装java,需要使用:

brew install --cask homebrew/cask-versions/adoptopenjdk8

如果您的 mac 上没有安装 homebrew,您可以通过

安装它
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

要安装java(最新版本)只需使用下面的命令

brew install java

我在看书的时候发现了这个问题,Docker up and 运行。在学习安装章节时,我正在 Mac 上安装 Virtual Box 并遇到了这个问题引用的问题。请注意,在回答此问题时,至少 Macs,您不需要安装 Cask,如上所述。但是,您也不能再 运行 brew cask <my-command> 了。您需要 运行 形式的 Cask 命令:

brew <my-command> --cask

我希望这对你有所帮助,因为它对我有帮助。