Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: qiniu/php-sdk[v7.2.7, v7.2.9].
- Can only install one of: qiniu/php-sdk[v7.2.9, v7.2.7].
- Can only install one of: qiniu/php-sdk[v7.2.7, v7.2.9].
- zgldh/qiniu-laravel-storage v0.10.2 requires qiniu/php-sdk 7.2.7 -> satisfiable by qiniu/php-sdk[v7.2.7].
- Installation request for zgldh/qiniu-laravel-storage ^0.10.2 -> satisfiable by zgldh/qiniu-laravel-storage[v0.10.2].
- Installation request for qiniu/php-sdk (locked at v7.2.9, required as ^7.2) -> satisfiable by qiniu/php-sdk[v7.2.9].
Installation failed, reverting ./composer.json to its original content.
如题。如果项目中已经安装了
qiniu/php-sdk
并且版本不等于v7.2.7
时,再去安装zgldh/qiniu-laravel-storage
就会报错。错误内容如下:目前
qiniu/php-sdk
的最新版本是v7.2.9
,而项目中锁定依赖版本为v7.2.7
导致安装失败。建议将
composer.json
中对qiniu/php-sdk
的依赖改为^7.2
。