arc diff(Arcanist)因 env 失败:php:没有这样的文件或目录

arc diff(Arcanist) failing with env: php: No such file or directory

升级到 macOS 后,Monterey Arcanist 命令(如 arc diff)失败并出现以下错误

env: php: No such file or directory

第一步

brew install php@7.4
ln -s /usr/local/opt/php@7.4/bin/php /usr/local/bin/php

如果您在第 1 步中遇到错误 运行 这个

xcode-select --install