Homebrew cask使用`--caskroom`标志调用`brew cask`被禁用

时间:2017-11-01 03:58:24

标签: homebrew homebrew-cask

当我在iterm2中输入$ brew cask时。我已经厌倦了只使用brew可以工作,但是使用cask然后返回此错误。

然后

Error: Calling `brew cask` with the `--caskroom` flag is disabled!
There is no replacement.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/options.rb:53:in `block (3 levels) in process_arguments'

我使用的是MacBook Pro 13。

homebrew config

HOMEBREW_VERSION: 1.3.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 270b752f5d9d218bfbed6fe85b6974fa653fb25f
Last commit: 2 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 97f00b13e1bc310cfdf7b419a1844632781b88b9
Core tap last commit: 28 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.13.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Java: 1.8.0_111
macOS: 10.13-x86_64
Xcode: 9.0.1
CLT: N/A
X11: N/A

1 个答案:

答案 0 :(得分:4)

您是否设置了HOMEBREW_CASK_OPTS环境变量? 如果是这样,您只需要从中删除--caskroom标志。