TiagoSilvaPereira / vemto2-issues

Repository to track Vemto 2 Issues
4 stars 0 forks source link

Vemto Ignores PHP Path Specified in Settings #163

Open aminechraibi opened 4 weeks ago

aminechraibi commented 4 weeks ago

It appears that Vemto is not using the PHP executable specified in the application's settings. Instead, it defaults to using the PHP version found in the system's PATH environment variable.

Error Message: (error) FAILED to execute command: "F:\bins\php\php-8.3.8-nts\php.exe" artisan jetstream:install livewire --teams --no-interaction |> Composer could not detect the root package (laravel/laravel) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version ./composer.json has been updated Composer could not detect the root package (laravel/laravel) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version Running composer update livewire/livewire Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Stack:

Error: Command failed: "F:\bins\php\php-8.3.8-nts\php.exe" artisan jetstream:install livewire --teams --no-interaction

    at ChildProcess.exithandler (node:child_process:407:12)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)

Vemto 2.0.16 win32 10.0.19045 Locale: fr App version: 2.0.16

TiagoSilvaPereira commented 4 weeks ago

Hi @aminechraibi, it is probably a Jetstream issue. Vemto adds the PHP path to the command string, so it always use the PHP path you specified, as you can see in the error message:

"F:\bins\php\php-8.3.8-nts\php.exe" artisan jetstream:install livewire --teams --no-interaction

But Jetstream internally calls PHP, and it is probably calling the global PHP version. I'll check if it is possible to set the Jetstream PHP path from Vemto although.

Best regards

aminechraibi commented 4 weeks ago

Hi @TiagoSilvaPereira,

Thanks for clarifying. That explains the issue.

Best regards,