Closed SamuelNitsche closed 3 years ago
I also got this same error message. I am running version 2.0.0 on macOS.
There may be multiple php
installations in your system. Remove old ones if you can or see if there is any environment variable path
precedence issues.
I'll add the ability to choose custom PHP executable in the next release.
I think OSX comes with PHP bundled, I dont think is a path variable
issue, otherwise the terminal would be returning the wrong version as well.
PHP installed with homebrew is at (version which I use):
/usr/local/bin/php
PHP bundled is at:
/usr/bin/php
Content of /etc/paths
:
❯ cat /etc/paths
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
Changing the path variable or /etc/paths
file don't work.
The path that Laravel Kit uses:
My path:
Maybe is related to this issue: https://stackoverflow.com/questions/62067127/path-variables-empty-in-electron
I think this should do the work.
if (process.platform === "darwin") {
process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":");
}
Unfortunately, I can't test this because I don't have a mac.
Not really. I have a m1 mac and php is located somewhere else. I think using this package makes more sense.
This package has a webpack bug saying it can't resolve a module. The dependencies are outdated. I need to fork this and fix the bugs.
I just built the app from source using the latest code and now it works fine for me.
Fixed in v2.0.1
When I open a project, I get the following error message.
Running
php -v
outputs the correct PHP version which I am using.Kit version: 2.0.0 Operating system: macOS 10.15.7