我在MacOS 10.13.3 (17D102)上开始出现奇怪的错误。
我刚刚尝试使用GitHub页面上的说明安装Homebrew,但收到了此错误:
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4680, done.
remote: Compressing objects: 100% (4476/4476), done.
remote: Total 4680 (delta 45), reused 694 (delta 19), pack-reused 0
Receiving objects: 100% (4680/4680), 3.81 MiB | 4.74 MiB/s, done.
Resolving deltas: 100% (45/45), done.
Tapped 4478 formulae (4,722 files, 11.9MB)
Error: Permission denied @ rb_sysopen - /tmp/github_api_headers20180308-4136-cqt2yb
Error: Failure while executing: /usr/local/bin/brew tap homebrew/core
我已经尝试过:
sudo chown -R $(whoami) $(brew --prefix)/*
根据这个指南,仍然收到错误信息。
运行
Brew Doctor
返回Your system is ready to brew.
,我的Ruby版本是ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-darwin16.6.0]
使用brew install zsh
可以更容易地重复出现错误。