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;
Open Control Panel>Programs>uninstall the uninstall composer
If downloaded, copy the composer setup installer to the xampp folder
C:\xampp
. If not downloaded, download the setup from the official websiteInstall composer and press enter till all the steps are completed 4.Close all open terminals if any.
Open a new terminal and run composer -V to see if composer is installed
Open the php.ini file in
C:\xampp\php\php.ini
and uncomment;extension=zip
toextension=zip
Head to the desired folder of choice using the terminal commands and then run
composer global require laravel/installer