Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer安装失败 #382

Open
ideaviewes opened this issue May 12, 2022 · 7 comments
Open

composer安装失败 #382

ideaviewes opened this issue May 12, 2022 · 7 comments

Comments

@ideaviewes
Copy link

  • Root composer.json requires qiniu/php-sdk ^7.5 -> satisfiable by qiniu/php-sdk[v7.5.0].
    • qiniu/php-sdk v7.5.0 requires myclabs/php-enum 1.6.6 -> found myclabs/php-enum[1.6.6] but the package is fixed to 1.7.7 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
@lihsai0
Copy link
Collaborator

lihsai0 commented May 12, 2022

qiniu 的 SDK 使用的 myclabs/php-enum[1.6.6] 可以看下您项目是否也使用了 myclabs/php-enum。

尝试降低下 myclabs/php-enum 版本试试。

@ideaviewes
Copy link
Author

@lihsai0 ,我找了个qiniu/php-sdk没使用myclabs/php-enum的版本,我项目中我也不知道是哪个包依赖了myclabs/php-enum
这种应该有一种更好的解决办法吧
不能因为一个包依赖特定版本的包,导致其他依赖不同版本的包不能正常使用吧

@aszx0413
Copy link

aszx0413 commented Jul 5, 2022

这真的是composer的锅,npm就可以多版本并存

@janji404
Copy link

我项目中也是这个问题,后来composer install myclabs/php-enum 1.6.6版本就好了,之前的包也没报错

@ideaviewes
Copy link
Author

这真的是composer的锅,npm就可以多版本并存

如果七牛是免费的,那这是composer的锅,这是一个商业项目,那就是七牛的问题

@NingerJohn
Copy link

好奇,七牛为啥不能升级到1.8.x版本

@NingerJohn
Copy link

我项目中也是这个问题,后来composer install myclabs/php-enum 1.6.6版本就好了,之前的包也没报错

我这边用必须用require,哈哈。composer require myclabs/php-enum 1.6.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants