beyondcode / invoker-community

74 stars 2 forks source link

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

Closed spooksie closed 2 years ago

spooksie commented 2 years ago

Fresh installation on my new Mac. Ive not changed any settings or anything.


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

Error:

Error: spawn /usr/local/bin/php ENOENT
mechelon commented 2 years ago

Which MacOS version is installed?

spooksie commented 2 years ago

MacOs 12

I solved it, as I installed PHP with homebrew, which installs to a different location.

❯ which php /opt/homebrew/bin/php

I went to settings and changed the path. It works now.

mechelon commented 2 years ago

I was asking because Apple removed PHP with Monterey (as far as I know) completely from the system. Checking the path was my next idea.

Glad you figured it out! 🎉