使用 Composer 时停在 /user/bin/unzip,是什么原因?

1. 运行环境

1). 当前使用的 Laravel 版本?

8.83.18

2). 当前使用的 php/php-fpm 版本?

PHP 版本:

8.0.13

3). 当前系统

Windows 10

4). 业务环境

开发环境

2. 问题描述?

vagrant@homestead:~/code/zqx$ composer require dcat/laravel-admin:"2.*" -vvv   
Running 2.1.14 (2021-11-30 10:51:43) with PHP 8.0.13 on Linux / 5.4.0-91-generic
Reading ./composer.json (/home/vagrant/code/zqx/composer.json)
Loading config file /home/vagrant/.config/composer/config.json
Loading config file /home/vagrant/.config/composer/auth.json
Loading config file ./composer.json (/home/vagrant/code/zqx/composer.json)
Checked CA file /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a file.
Checked directory /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a directory.
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/home/vagrant/code/zqx): git branch -a --no-color --no-abbrev -v
Reading /home/vagrant/.config/composer/composer.json
Loading config file /home/vagrant/.config/composer/config.json
Loading config file /home/vagrant/.config/composer/auth.json
Loading config file /home/vagrant/.config/composer/composer.json (/home/vagrant/.config/composer/composer.json)
Loading config file /home/vagrant/.config/composer/auth.json
Reading /home/vagrant/.config/composer/auth.json
Reading /home/vagrant/code/zqx/vendor/composer/installed.json
Reading /home/vagrant/.config/composer/vendor/composer/installed.json
Loading plugin Slince\Crm\RepositoryManager (from slince/composer-registry-manager, installed globally)
Downloading https://mirrors.aliyun.com/composer/packages.json
[200] https://mirrors.aliyun.com/composer/packages.json
Writing /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/packages.json into cache
Reading /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-dcat~laravel-admin.json from cache
Downloading https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin.json if modified
Reading /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-dcat~laravel-admin~dev.json from cache
Downloading https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin~dev.json if modified
[304] https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin~dev.json
[304] https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin.json
./composer.json has been updated
Reading ./composer.json (/home/vagrant/code/zqx/composer.json)
Loading config file /home/vagrant/.config/composer/config.json
Loading config file /home/vagrant/.config/composer/auth.json
Loading config file ./composer.json (/home/vagrant/code/zqx/composer.json)
Executing command (/home/vagrant/code/zqx): git branch -a --no-color --no-abbrev -v
Reading /home/vagrant/.config/composer/composer.json
Loading config file /home/vagrant/.config/composer/config.json
Loading config file /home/vagrant/.config/composer/auth.json
Loading config file /home/vagrant/.config/composer/composer.json (/home/vagrant/.config/composer/composer.json)
Loading config file /home/vagrant/.config/composer/auth.json
Reading /home/vagrant/.config/composer/auth.json
Reading /home/vagrant/code/zqx/vendor/composer/installed.json
Reading /home/vagrant/.config/composer/vendor/composer/installed.json
Loading plugin Slince\Crm\RepositoryManager_composer_tmp0 (from slince/composer-registry-manager, installed globally)
Running composer update dcat/laravel-admin
Reading ./composer.lock (/home/vagrant/code/zqx/composer.lock)
Loading composer repositories with package information
Downloading https://mirrors.aliyun.com/composer/packages.json
[200] https://mirrors.aliyun.com/composer/packages.json
Writing /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/packages.json into cache
Reading /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-dcat~laravel-admin.json from cache
Downloading https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin.json if modified
Reading /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-dcat~laravel-admin~dev.json from cache
Downloading https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin~dev.json if modified
[304] https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin.json
[304] https://mirrors.aliyun.com/composer/p2/dcat/laravel-admin~dev.json
Reading /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-symfony~dom-crawler.json from cache
Downloading https://mirrors.aliyun.com/composer/p2/symfony/dom-crawler.json if modified
Reading /home/vagrant/.cache/composer/repo/https---mirrors.aliyun.com-composer/provider-symfony~dom-crawler~dev.json from cache
Downloading https://mirrors.aliyun.com/composer/p2/symfony/dom-crawler~dev.json if modified
[304] https://mirrors.aliyun.com/composer/p2/symfony/dom-crawler~dev.json
[304] https://mirrors.aliyun.com/composer/p2/symfony/dom-crawler.json
Updating dependencies
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Analyzed 558 packages to resolve dependencies
Analyzed 1515 rules to resolve dependencies
Nothing to modify in lock file
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.000 seconds
Writing lock file
Installing dependencies from lock file (including require-dev)
Reading ./composer.lock (/home/vagrant/code/zqx/composer.lock)
> pre-operations-exec: Composer\Command\RequireCommand->markSolverComplete
Package operations: 1 install, 0 updates, 0 removals
Installs: dcat/laravel-admin:2.2.2-beta
  - Downloading dcat/laravel-admin (2.2.2-beta)
Downloading https://mirrors.aliyun.com/composer/dists/dcat/laravel-admin/150f46486871b5ca57992f7eed3787e0c1c49bef.zip
[200] https://mirrors.aliyun.com/composer/dists/dcat/laravel-admin/150f46486871b5ca57992f7eed3787e0c1c49bef.zip
Writing /home/vagrant/.cache/composer/files/dcat/laravel-admin/b29f96f64cc6a84fdde79bfe78bf8159d19496a9.zip into cache from /home/vagrant/code/zqx/vendor/composer/tmp-c31550b3091a133a32e2046f1705adcd
  - Installing dcat/laravel-admin (2.2.2-beta): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/home/vagrant/code/zqx/vendor/composer/tmp-c31550b3091a133a32e2046f1705adcd' -d '/home/vagrant/code/zqx/vendor/composer/b78c75d1'
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 2
porygonCN

homestead 没找到unzip命令吧

2年前 评论
十七岁程序员想当歌手 (楼主) 2年前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!