如何修复自制软件的"No available formula"警告



当我开始一个新的终端会话时,我不断得到

Error: No available formula with the name "homebrew/php/php56"
Please tap it and then try again: brew tap homebrew/php

警告。我试过brew tap homebrew/php但得到了

Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.

另外,尝试了brew doctorbrew cleanupbrew updatebrew upgrade但没有运气。有没有人能解决这个烦人的警告?

查看 shell 的配置文件(~/.bash_profile~/.zshrc 或类似文件(并删除有问题的项目。

就我而言,我仍然在export PATH行中引用了它。从该行中删除$(brew --prefix homebrew/php/php56)/bin应该会在启动时清除这些警告。

你可以试试

$ brew install php72

相关内容

最新更新