错误:木桶/木桶被移动。改为点击 homebrew/cask-cask
Posted
技术标签:
【中文标题】错误:木桶/木桶被移动。改为点击 homebrew/cask-cask【英文标题】:Error: caskroom/cask was moved. Tap homebrew/cask-cask instead 【发布时间】:2020-02-08 15:16:39 【问题描述】:我尝试在 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
但我遇到了同样的错误。你有什么建议吗?
【问题讨论】:
【参考方案1】:您不再需要安装 cask,只需要 homebrew。尝试使用任何木桶命令
【讨论】:
我尝试在终端中输入“cask”。错误是“-bash: cask: command not found” 我想我明白了。当我写 brew cask 时,它给了我选择 文件路径错误。最好按照提示Tap homebrew/cask-cask instead
。
只需使用brew cask install gimp
而不是brew tap caskroom/cask && brew cask install gimp
安装gimp。谢谢!
@rize 问题是“brew cask”命令不起作用。 Jurgen 是正确的:'brew install --cask [name]' 是现在的写法【参考方案2】:
从自制软件而不是 caskroom 中点击:
brew tap homebrew/cask-fonts
【讨论】:
【参考方案3】://这段代码错误:
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 font-fira-code【参考方案4】:好的,我明白了,只需输入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"
【讨论】:
【参考方案5】:我们开始吧。
brew install alfred
【讨论】:
【参考方案6】:我遇到了同样的问题,必须执行以下操作...
-
安装木桶
-
然后我可以正常安装应用程序(例如 Java)
【讨论】:
【参考方案7】:您现在不需要安装 cask。但是命令发生了一些变化。就像如果你想安装java,你需要使用:
brew install --cask homebrew/cask-versions/adoptopenjdk8
【讨论】:
【参考方案8】:如果你的mac上没有安装homebrew,你可以通过
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
要安装java(最新版本),只需使用以下命令
brew install java
【讨论】:
以上是关于错误:木桶/木桶被移动。改为点击 homebrew/cask-cask的主要内容,如果未能解决你的问题,请参考以下文章