解决composer 安装报错Installation failed, reverting ./composer.json and ./composer.lock to their

1、把需要引入的包写入 composer.json 中(写入的话,就不需要 composer require 了,直接composer update 即可。)

2、删除 composer.lock

3、$ composer clearcache 清除缓存

4、$ composer update 更新依赖(重新生成 composer.lock

https://blog.csdn.net/zz00008888/article/details/113973007

你可能感兴趣的:(解决composer 安装报错Installation failed, reverting ./composer.json and ./composer.lock to their)