Tag: php71

  • Error: No available formula with the name "homebrew/php/php71" 解決辦法

    這個問題大概是某次更新 homebrew 後出現的,因為筆電還有 MAMP  可以開發,沒急著解決問題。 今天剛好看到解法,記錄一下。 出現的情況是在 macOS 打開 terminal 時會看到以下訊息 Error: No available formula with the name “homebrew/php/php71″ Please tap it and then try again: brew tap homebrew/php  原因是 homebrew/php 這個名稱已經棄用了,修改 ~/.zshrc 這個文件 刪除這一行即可 export PATH=”$(brew –prefix homebrew/php/php71)/bin:$PATH:~/run”