且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

锁定文件不是最新的,具有composer.json中的最新更改

更新时间:2023-11-16 23:27:52

您可以使用depends&在作曲家中按prohibits来查看您应该做什么:

You may use depends & prohibits on composer to see what exactly you should do:

composer depends symfony/process 3.4.15

composer prohibits symfony/symfony 4

这两个命令告诉您什么是冲突以及您应该做什么.

This two commands tell you what is the conflict and what you should do.

主要问题是您的composer.jsoncomposer.lock不同步.第一个文件告诉作曲家需要什么包装和包装.它们的版本约束,第二个在协作者之间共享完全相同的软件包版本,以保持一致性.

The main problem is that your composer.json and composer.lock are not in sync. The first file tells composer what are required package & their version constraints, and the second one shares the exact same package version between collaborators, for consistency.

如果存储库所有者不能帮助您解决此问题,则唯一的方法是:

If the repository owner does not help you with this problem, the only way you have is:

rm composer.lock
rm -rf vendor
composer install

根据composer.json