22

我尝试在 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

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

4

8 回答 8

31

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

于 2019-10-11T09:09:59.203 回答
8

从自制软件而不是 caskroom 中点击:

brew tap homebrew/cask-fonts
于 2019-10-18T17:37:08.847 回答
4

//此代码错误:

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)
于 2019-12-08T21:37:47.550 回答
1

好的,我明白了,只需输入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"
于 2019-10-11T18:07:44.403 回答
0

开始了。

brew install alfred

在此处输入图像描述

于 2021-02-17T01:42:57.993 回答
0

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

  1. 安装木桶
echo "安装 caskroom"
酿造水龙头酒桶/酒桶;
  1. 然后我能够正常安装应用程序(例如Java)
回声“安装java”
酿造桶安装java;
java-版本;
于 2021-08-20T13:33:37.390 回答
0

您现在不需要安装木桶。但是命令发生了一些变化。就像如果你想安装java,你需要使用:

brew install --cask homebrew/cask-versions/adoptopenjdk8
于 2021-10-18T13:04:54.460 回答
-1

如果您的 Mac 上没有安装自制软件,您可以通过以下方式安装它

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

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

brew install java
于 2021-11-23T05:49:10.370 回答