invoker-community icon indicating copy to clipboard operation
invoker-community copied to clipboard

Error: spawn /usr/local/bin/php ENOENT

Open azerioid opened this issue 1 year ago • 2 comments


OS: darwin Invoker Version: 2.14.0 Laravel Version: unknown Local project: true PHP Binary Path: /usr/local/bin/php PHP Version: Route: /home

Error:

Error: spawn /usr/local/bin/php ENOENT

azerioid avatar Nov 23 '24 21:11 azerioid

I got this too, on an M1 macbook air MacOS 14.6.1


OS: darwin Invoker Version: 2.14.0 Laravel Version: unknown Local project: true PHP Binary Path: /usr/local/bin/php PHP Version: Route: /home

Error:

Error: spawn /usr/local/bin/php ENOENT

saml-dev avatar Nov 26 '24 15:11 saml-dev

Fixed by updating my PHP binary path in the settings. For others that hit this, I use Herd for my PHP installation so I had to point it to:

/Users/samlewis/Library/Application Support/Herd/bin/php

I found this path using which php

For the Invoker team, maybe you could detect Herd installation and default to that version of PHP? Or at least give a more descriptive error message telling users what to fix.

saml-dev avatar Nov 26 '24 15:11 saml-dev