在我的Mac OSX Yosemite上。
当我做一个 brew update
error: unable to unlink old 'bin/brew' (Permission denied)
error: unable to unlink old 'share/man/man1/brew.1' (Permission denied)
好。所以我做一个sudo brew update
MacBook-Pro:bin$ sudo brew update
Password:
Error: Cowardly refusing to `sudo brew update`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
因此,它不允许我以任何方式运行更新。
用于澄清问题的评论-不能猜出答案:)我已将其移至聊天区域,以便我们可以在其他地方进行元对话。
—
bmike