我开始在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)/*根据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可以更容易地重复错误。
发布于 2020-12-13 10:58:18
当我对postgres用户执行sudo操作时,就发生了这种情况。退回到我的普通用户,让我可以毫无障碍地继续。
https://stackoverflow.com/questions/49183746
复制相似问题