Home  >  Q&A  >  body text

Unable to install swagger package using laravel

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粉124890778P粉124890778177 days ago384

reply all(1)I'll reply

  • P粉928591383

    P粉9285913832024-03-30 09:42:40

    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

    reply
    0
  • Cancelreply