Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"The zip extension and unzip/7z commands are both missing, skipping" in Windows during Composer install of Laravel

I'm downloading Laravel on Windows through Composer and it is giving me the following error:

Failed to download symfony/process from dist: The zip extension and unzip/7z commands are both missing, skipping.

I googled a bit and most of the answers were to use the command sudo apt-get install zip unzip php-zip. But I'm using Windows and I can't find any answer relating to the issue.

like image 615
Aleef Avatar asked Sep 13 '25 04:09

Aleef


2 Answers

Had the same problem too (Windows). Fixed it by;

Open the php.ini file and uncomment ;extension=zip to extension=zip

like image 146
Indeche Ojukwu Avatar answered Sep 15 '25 18:09

Indeche Ojukwu


https://www.php.net/manual/en/zip.installation.php#zip.installation.new.windows:

As of PHP 8.2.0, php_zip.dll DLL must be enabled in php.ini. Previously, this extension was built-in.

like image 20
cmb Avatar answered Sep 15 '25 17:09

cmb