-
-
Notifications
You must be signed in to change notification settings - Fork 9
Description
What were you trying to do?
Hello, everyone.
I try to create a complete new native-php v2 app on my windows 11 PC with Laravel 12.
I didn't install packages when run php artisan native:install, so when I run php artisan native:run --installer=pnpm, command will run but stop immediately.
To see what happened, I add ->throw() on the command's process (link).
outputs are provided separately.
It seems that we have to edit or delete the package manager specified in the package.json of electron (link) before install packages using pnpm:
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
If I missed anything that I need to provide, please tell me, thank you.
What happened?
I don't know if it's a bug or I just didn't find the right way to create app.
How to reproduce the bug
Do not install packages when run php artisan native:install, then run php artisan native:run --installer=pnpm.
Debug Output
Didn't run debug command.
Which operating systems have you seen this occur on?
Windows
Notes
Output here:
Starting NativePHP dev server…
Fetching latest dependencies…
Installing NPM dependencies (This may take a while)...
Installing NPM dependencies using the pnpm package manager...
Illuminate\Process\Exceptions\ProcessFailedException
The command "pnpm install" failed.
Exit Code: 1
Error Output:
================
ERROR This project is configured to use yarn
For help, run: pnpm help install
at vendor\laravel\framework\src\Illuminate\Process\ProcessResult.php:124
120▕ if ($this->successful()) {
121▕ return $this;
122▕ }
123▕
➜ 124▕ $exception = new ProcessFailedException($this);
125▕
126▕ if ($callback) {
127▕ $callback($this, $exception);
128▕ }
1 vendor\nativephp\desktop\src\Drivers\Electron\Traits\ExecuteCommand.php:44
Illuminate\Process\ProcessResult::throw()
2 vendor\nativephp\desktop\src\Drivers\Electron\Traits\Installer.php:35
Native\Desktop\Drivers\Electron\Commands\RunCommand::executeCommand("pnpm install", "install")