Skip to content

Commit 037f126

Browse files
committed
fix: composer environment compatibility issue
1 parent 6430ce4 commit 037f126

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Support/Process.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static function run(string $cmd, mixed $output = null, ?string $cwd = nul
3535

3636
$envs = [
3737
'PATH' => rtrim(`echo \$PATH`),
38+
'COMPOSER_HOME' => '~/.config/composer',
3839
'COMPOSER_MEMORY_LIMIT' => '-1',
3940
'COMPOSER_ALLOW_SUPERUSER' => 1,
4041
] + $env;

0 commit comments

Comments
 (0)