Closed darmentrout closed 3 years ago
php bin/gpm version -f
D:\xamp\htdocs\dom.local>php bin\gpm version
You are running Grav v1.6.23
@YuraL0ns I get the same error when I append 'php' to the command.
@darmentrout I received an error yesterday, but I did not use php, but today I work with php and there are no errors.
This is most likely due to bin/gpm not escaping the command returned by composer (can be tricky tho'
https://github.com/getgrav/grav/blob/develop/bin/gpm#L15
calling: https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Composer.php#L59
replacing that line 59 with: return $executor . escapeshellarg($composer);
and on line 46: $executor = escapeshellcmd(PHP_BINARY) . ' ';
should do it.
Also the same could happen on any platforms allowing spaces in paths btw.
(btw, sorry for no PR yet, I am just starting to look at Grav and begin to like it, needed for one of my projects :)
on windows if u have PATH php setup i run php bin/gpm install admin
without PATH just run c:/pathtoyourphp/php.exe bin/gpm install admin
Following instructions for installing the admin plugin, I'm running into the following error:
I'm running Windows and PHP is in the path. I'm using the Git for Windows Linux emulator.
I get the same results in PowerShell: