在Mac上安装自制软件时,我收到此错误失败:git init -q

问题描述 投票:0回答:2

我试图在我的macbook上安装自制软件并使用命令行命令

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

在网站上给出安装它,我得到了这个错误。

Failed during: git init -q

我该如何解决这个问题?

git github terminal homebrew macos-mojave
2个回答
0
投票

请使用您使用的确切命令更新您的帖子。假设它是/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)",请确保通过在bash中运行xcode-select --install来安装Xcode CLT。你可能在那里失败了,因为没有安装git。


0
投票

它可能是一个权限错误,运行官方qazxsw poi中建议的命令:

troubleshooting page
© www.soinside.com 2019 - 2024. All rights reserved.