composer php phar extension is missing

506 Views Asked by At

I tried executing this line

php artisan jetstream:install livewire

but returned this.

PHP's phar extension is missing. Composer requires it to run. Enable the extension or recompile php without --disable-phar then try again.

I has phar enabled

~/web/example-app$ php -i | grep -i phar
/etc/php/8.2/cli/conf.d/20-phar.ini,
Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar
Phar
Phar: PHP Archive support => enabled
Phar API version => 1.1.1
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

but this error always happens

Composer version 2.5.5 2023-03-21 11:50:05

Please, someone could help me ?

Someone could help me ?

0

There are 0 best solutions below