php 下载laravel composer时显示此错误

mfuanj7w  于 2023-02-03  发布在  PHP
关注(0)|答案(1)|浏览(311)
composer global require laravel/installer --update-with-dependencies
Changed current directory to C:/Users/DELL/AppData/Roaming/Composer
./composer.json has been updated
Running composer update laravel/installer --with-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 11 installs, 0 updates, 0 removals
    Failed to download symfony/process from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
    Now trying to download from source

In GitDownloader.php line 82:

  git was not found in your PATH, skipping source download

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

composer update --prefer-source
composer global require "laravel/installer=~1.1"
w1jd8yoj

w1jd8yoj1#

看起来您还没有在PHP中启用zip扩展
编辑php.ini并找到此行

;extension=zip

并删除注解;

相关问题