【发布时间】:2017-03-28 07:26:09
【问题描述】:
我运行这个:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
我得到提示:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
点击“返回”(输入按钮)后,我收到此错误:
==> Downloading and installing Homebrew...
fatal: cannot copy '/usr/local/git/share/git-core/templates/hooks/pre-receive.sample' to '/usr/local/Homebrew/.git/hooks/pre-receive.sample': Permission denied
Failed during: git init -q
任何想法我面临什么样的错误以及可以做什么?这对我来说不是很清楚,因为这是我第一次面对这样的事情。
【问题讨论】:
标签: git permissions homebrew