更新时间:2022-01-25 08:40:22
我无法完全解释它,但这在Windows上对我有用:
I can't fully explain it, but this works for me on Windows:
$process = (new ChromeProcess)->toProcess();
if ($process->isStarted()) {
$process->stop();
}
$process->start(null, [
'SystemRoot' => 'C:\\WINDOWS',
'TEMP' => 'C:\Users\<User>\AppData\Local\Temp',
]);
[...]
用您的用户目录名称替换<User>
.
Replace <User>
with the name of your user directory.