brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git

这篇具有很好参考价值的文章主要介绍了brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git
  • 先来解决第一个问题

Error: No developer tools installed.
Install the Command Line Tools:
xcode-select --install
xcode-select --install
  • 然后升级一下brew,出现警告。然后再次尝试安装tree

brew update
brew install tree
  • 出现如下错误:

brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git
fatal: not in a git directory
Error: Command failed with exit 128: git
  • 在终端输入

brew -v
brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git
Homebrew 3.6.20
fatal: detected dubious ownership in repository at '/opt/homebrew/Library/Taps/homebrew/homebrew-core'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
Homebrew/homebrew-core (no Git repository)
fatal: detected dubious ownership in repository at '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
Homebrew/homebrew-cask (no Git repository)
  • 按照他给出的解决方法输入如下命令

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git
  • 虽然有警告,但是brew install tree成功了文章来源地址https://www.toymoban.com/news/detail-453278.html

到了这里,关于brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 编译内核 make modules_install报错SSL error:02001002:system library:fopen:No such file or directory

            在编译内核实验中,在完成make、make_modules操作后在make modules_install的过程中报错SSL error:02001002:system library:fopen:No such file or directory:         推测是由于在解决make环节的报错make[1]: *** 没有规则可制作目标“debian/canonical-certs.pem”,由“certs/x509_certificate_list”

    2024年02月11日
    浏览(41)
  • 解决brew install后卡住不动Error: Cannot download non-corrupt https://formulae.brew.sh/api/formula.jws.json

    运行brew install 就会提示如下信息:  解决方法如下:

    2024年02月12日
    浏览(37)
  • ERROR command failed: npm install --loglevel error --legacy-peer-deps

    完美解决ERROR command failed: npm install --loglevel error --legacy-peer-deps 出现问题,第一步是查找问题根源。 查看日志信息,如果出现permittion字样,请尝试第一种方法:使用管理员身份运行cmd,重新构建项目。 第二种方法,卸载npm,安装低版本的npm(即nodejs),再重新构建。

    2024年02月04日
    浏览(41)
  • pip install pycrypto 报错 error: command ‘C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\

    1、pip install pycrypto报错如下 error: command \\\'C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 14.0\\\\VC\\\\BIN\\\\x86_amd64\\\\cl.exe\\\' failed with exit code 2 2、搞了半天,又是下载安装 Microsoft Visual Studio 14.0 又是安装 Visual C++ Build Tools 。还是没搞定 3、谷歌一圈,百度一圈最后找到个可以解决的 参考: https:

    2024年02月11日
    浏览(39)
  • 解决问题: Error: command failed: npm install --loglevel error --legacy-peer-deps

    在启动vue脚手架的时候,出现了一个错误: 在经过查询后 删除了 .npmrc文件并且修改了.vuerc文件 ,但是依然不起作用 再修改vuerc文件 将useTaobaoRegistry修改为false   后重装淘宝镜像 并且依然报错 清除npm缓存 依然不能起作用 通过了解 发现报错的原因是node.js安装在D盘,导致权

    2024年02月12日
    浏览(42)
  • python 报错python.exe -m pip install --upgrade pip‘ command.

    WARNING: You are using pip version 21.1.1; however, version 22.3.1 is available. You should consider upgrading via the \\\'d:pythonpython38python.exe -m pip install --upgrade pip\\\' command. 提示这个报错,一般是pip没更新吧,我们更新一下就好了。 在终端这里输入以下代码 按回车就行。 也可以这样设置 两个效果是一样

    2024年02月12日
    浏览(41)
  • pycharm 无法加载pip3安装包报错:python packing tools not found. install packing tools

    win+R输入cmd,然后输入代码,回车,出现install sucessfully表示成功 Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。 查看是否已经安装 pip 可以使用以下命令: 下载安装包使用以下命令: 例如我们安装 numpy 包: 我们也可以轻易地通过以下的命令来移除软件包: 例如我们移除

    2024年02月05日
    浏览(48)
  • 项目 install 报错 node_modules\node-sass: Command failed. 处理

    公司之前的项目进行安装包和相关的依赖时,报错 node_modulesnode-sass: Command failed. 网上的切换淘宝镜像等方法都试过了不行,折腾了半天,最后问同事才知道是 node.js版本问题。 这个项目使用的node.js 版本是12.22.12,与我当前使用的16.18.1 不兼容导致的。 解决办法就是 切换成对

    2023年04月19日
    浏览(56)
  • npm install 报错 this command with --force, or --legacy-peer-deps

    运行  npm install --legacy-peer-deps  紧接 运行 npm run serve 报错如下 然后针对这个报错,1.删除这个 vue/compiler-sfc ,又重装,2.删除整个node_modules,又初始化,3.安装更新过 vue-loader 的版本 4.将 npm 改成 6版本再运行   等等都无效 最后再此正式思考第一个报错,    尝试运行  

    2024年02月11日
    浏览(28)
  • debian apt error: Package ‘xxx‘ has no installation candidate

    新的debian虚拟机可能会出现这个问题。 修改apt的source.list,位于/etc/apt/source.list,添加两行: 执行:

    2024年02月11日
    浏览(36)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包