Home > OS >  " The zip extension and unzip/7z commands are both missing, skipping " in Windows during i
" The zip extension and unzip/7z commands are both missing, skipping " in Windows during i

Time:01-11

so 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.

CodePudding user response:

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.

CodePudding user response:

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

  1. Open Control Panel>Programs>uninstall the uninstall composer

  2. If downloaded, copy the composer setup installer to the xampp folder C:\xampp. If not downloaded, download the setup from the official website

  3. Install composer and press enter till all the steps are completed 4.Close all open terminals if any.

  4. Open a new terminal and run composer -V to see if composer is installed

  5. Open the php.ini file in C:\xampp\php\php.ini and uncomment ;extension=zip to extension=zip

  6. Head to the desired folder of choice using the terminal commands and then run composer global require laravel/installer

  • Related