Unable to install swagger package using laravel
P粉124890778
P粉124890778 2024-03-29 23:20:26
0
1
445

I get this warning when I try to install the swagger package

Unable to download swagger-api/swagger-ui from dist: zip extension and unzip/7z command are both missing, skipped. The php.ini used by your command line PHP is: D:\xampp\php\php.ini Now try downloading from source

After a while I got this error

In Process.php line 1204: Process "git clone --no-checkout -- https://github.com/swagger-api/swagger-ui.git D:\xampp\htdocs\laravel-10\vendor\swagger-api\swagger-ui &&

d /D D:\xampp\htdocs\laravel-10\vendor\swagger-api\swagger-ui && git remotely add composer-- https://github.com/swagger-api/swagger-ui.git && git fe < /p>

tch composer && git remote set-url source -- https://github.com/swagger-api/swagger-ui.git && git remote set-url composer -- https://github.com/swa

gger-api/swagger-ui.git" exceeded the timeout of 300 seconds.

P粉124890778
P粉124890778

reply all(1)
P粉928591383

There are two questions here.

    The
  1. ZIP extension is missing. (zip extension and unzip/7z command are missing, skip)
  2. Composer timed out. (Timeout exceeded 300 seconds.)

First error

  1. Open the php.ini file (D:\xampp\php\php.ini).
  2. Find ;extension=zip and delete the leading semicolon.
  3. Save and restart your XAMPP.

the second term

composer config --global process-timeout 600
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template