Herd installation not finding PHP, Composer, Laravel
I have used Herd for a while now and really like it. I got a new machine, that was setup from scratch, and when I downloaded Herd, everything appeared to work in the Herd UI. When I went to run herd -v, php -v or any of the other checks in the docs, I got the error that the command could not be found. I couldn't find anywhere in the docs saying to update the path in the bashrc/profile, so I though I would post here in case anyone else has the issue.
To resolve the issue of Herd not finding PHP, Composer, or Laravel on your new machine, you need to ensure that the correct paths are added to your system's PATH environment variable. This allows your terminal to locate the executables for these tools. Here's a step-by-step solution:
Update the PATH in your shell configuration file:
Depending on the shell you are using, you will need to update the appropriate configuration file. For most macOS users, this will be either ~/.bash_profile, ~/.bashrc, or ~/.zshrc (if you are using Zsh, which is the default shell in newer versions of macOS).
Add the following line to your shell configuration file to include the Herd binaries in your PATH: