Photo of DeepakNess DeepakNess

Laravel installer getting killed after update

I ran into this after updating Laravel / Herd Lite using the php.new installer. The update itself looked successful, but when I tried creating a new Laravel project, the command was immediately killed by macOS.

Initially, it looked like a Laravel installer issue because I also saw a PHP parse error from inside the Laravel installer PHAR. But the actual issue was lower-level: the bundled PHP binary was getting blocked/killed when running from Herd Lite's installed bin directory.

The fix was to download fresh PHP, Composer, and Laravel installer binaries and place them in a clean local bin directory. Then I updated my shell PATH so this clean directory is used before the problematic Herd Lite bin path.

In short:

export PATH="$HOME/.local/herd-lite-bin:$PATH"

After reloading the terminal, php, composer, and laravel resolved to the working binaries, and laravel new started working again.

So if Laravel commands suddenly start saying zsh: killed after a Herd Lite / php.new update, check where your php and laravel binaries are coming from first.

Comment on Mastodon

Webmentions

What’s this?