问题 Installation failed, reverting ./composer.json and ./composer.lock to their original content.
之前composer install的时候composer.lock上的版本和代码库的包版本不一致,把本地composer.lock的更改重置掉了,导致本地的版本号和本地的vendor代码库版本不一致,再安装包的时候就会报错
rm -rf composer.lock
composer clearcache 清除缓存
composer require
问题 Replicating claims as headers is deprecated and will removed from v4.0. Please manually set the header if you need it replicated.
laravel的passport包使用thephpleague/oauth2-server, 而thephpleague/oauth2-server 使用的是 lcobucci/jwt “3.3.3”.版本,而本地的jwt版本应该不一致,导致的不兼容
composer require lcobucci/jwt=3.3.3