composer install 出现 RuntimeException Failed to execute

 

报错:composer.json 的  require添加新包 需要删除composer.lock和vender 从新composer install

[RuntimeException]
Failed to execute git checkout 'xxxx' -- && git reset --hard 'xxxxx' --

error: unable to read sha1 file of xxxxxx (xxxx)

......

......

 

解决方法

composer clear

composer install

 

参考:https://segmentfault.com/q/1010000018768672

posted @ 2020-07-13 17:11  千载白云  阅读(1460)  评论(0编辑  收藏  举报