thinkadmin 使用composer -vvv install 安装时报错Executing async command (CWD): ‘/usr/bin/unzip‘ -qq

总结:一场乌龙;同事好多代码没有提交,被 .gitignore拦截了,主要public,config 目录下的文件  ,导致他的系统composer install 正常,测试线可以,我拉取的代码执行composer install 不可以,每次都失败,

[vagrant@10 admin]$ composer -vvv install
Running 2.5.7 (2023-05-24 15:00:39) with PHP 8.1.10 on Linux / 3.10.0-229.el7.x86_64
Reading ./composer.json (/home/wwwroot/www/admin/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/wwwroot/www/admin/composer.json)
Checked CA file /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem: valid
Executing command (/home/wwwroot/www/admin): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Failed to initialize global composer: Composer could not find the config file: /home/vagrant/.config/composer/composer.json

Reading /home/wwwroot/www/admin/vendor/composer/installed.json
Loading plugin think\admin\install\Service (from zoujingli/think-install)
Reading ./composer.lock (/home/wwwroot/www/admin/composer.lock)
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Reading ./composer.lock (/home/wwwroot/www/admin/composer.lock)
Built pool.
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.000 seconds
Package operations: 1 install, 0 updates, 0 removals
Installs: zoujingli/think-plugs-static:v1.0.60
Reading /home/vagrant/.cache/composer/files/zoujingli/think-plugs-static/64ce709f80441d940425f32edfd6c8bd2788ab97.zip from cache
  - Loading zoujingli/think-plugs-static (v1.0.60) from cache
  - Installing zoujingli/think-plugs-static (v1.0.60): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/home/wwwroot/www/admin/vendor/composer/tmp-b4ca5b6ce6d036214f37c8c963837495' -d '/home/wwwroot/www/admin/vendor/composer/24f0244f'

 重新拉取代码后,可以了

猜你喜欢

转载自blog.csdn.net/lxw1844912514/article/details/131102194