How can I fix "Error: Formulae found in multiple taps"?

How can I fix "Error: Formulae found in multiple taps"?

我要安装php54-redis.

Yu:nginx Yu$ brew install josegonzalez/php/php54-redis

==> Installing php54-redis from josegonzalez/homebrew-php

Error: Formulae found in multiple taps:

  • homebrew/php/php54

  • josegonzalez/php/php54

Please use the fully-qualified name e.g. homebrew/php/php54 to refer the formula.

我哪里做错了,这是如何正确完成的?

brew untap josegonzalez/homebrew-php

This 是同样的问题。

josegonzalez/homebrew-php 已移至 homebrew/php,因此我们可以重置它来修复错误。

参考 this GitHub issue link,您需要对不需要的点击执行以下操作。在这种情况下,如果您不想 homebrew/php/php54 点按,请尝试以下操作:

brew untap homebrew/php
brew tap --repair
brew update

我刚刚在另一个水龙头 (brew untap josegonzalez/php) 上试了一下,效果很好。

我知道这可能有风险,但在我的情况下,其他解决方案都不起作用,所以我手动删除了 /usr/local/Homebrew/Library/,然后一切又恢复正常了。

花了我很长时间,但我想通了。我不断收到同样的错误:

brew upgrade ==> Language Matters Warning: The Cloud Native Buildpacks project is updating its language in an Warning: effort to be more inclusive. Part of that effort includes renaming our Warning: default git branches from 'master' to 'main'. Warning: Error: To upgrade pack, retap it with:

# untap old repo (if present)
brew untap buildpack/tap

# untap current repo (if present)
brew untap buildpacks/tap

# retap current repo
brew tap buildpacks/tap

# upgrade
brew upgrade pack`

我最后做的是转到 /usr/local/Homebrew/Library/Taps 文件夹并删除 buildpack 文件夹。