centos中composer升级到2版本之后安装软件报错

Creating a "topthink/think=5.1.*" project at "./fyiyy"
Installing topthink/think (v5.1.40)
- Installing topthink/think (v5.1.40): Extracting archive
Created project in /home/www/fyiyy
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
- Locking topthink/framework (v5.1.40)
- Locking topthink/think-installer (v2.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Downloading topthink/framework (v5.1.40)
- Installing topthink/think-installer (v2.0.1): Extracting archive
- Installing topthink/framework (v5.1.40): Extracting archive
Failed to extract topthink/framework: (9) unzip -qq '/home/www/fyiyy/vendor/composer/tmp-437e6a9c7e229778d11572a3a7432252' -d '/home/www/fyiyy/vendor/composer/73c85bc1'

unzip: cannot find or open /home/www/fyiyy/vendor/composer/tmp-437e6a9c7e229778d11572a3a7432252.

This most likely is due to a custom installer plugin not handling the returned Promise from the downloader
See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec31ac68fb1c5c9bb for an example fix
Generating autoload files

 

解决方法:

目前还没有解决方法:可以降低版本解决

composer官方GitHub地址https://github.com/composer/composer/releases上下载低版本的composer.phar,

然后覆盖原来的版本,执行命令:

sudo mv composer.phar /usr/local/bin/composer

然后composer安装即可,可能会提示没有权限执行,
chmod -R 777 /usr/local/bin/composer

 

 

posted @ 2020-11-08 21:33  程序员小艺  阅读(1970)  评论(0编辑  收藏  举报