我在MacOS 10.13.3(17D102)上开始出现奇怪的错误。
我刚刚尝试使用GitHub页面上的说明安装自制软件并收到此错误:
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)/*
根据this guide仍然收到错误。
运行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
可以更容易地重复错误。
答案 0 :(得分:0)
当我对postgres用户表示敬意时,这发生在我身上。 回到我的普通用户后,我得以顺利进行。