首页 > 其他分享 >composer update 依赖文件没有任何问题,依然报错it could not be found in any version

composer update 依赖文件没有任何问题,依然报错it could not be found in any version

时间:2024-04-24 14:35:21浏览次数:29  
标签:could update version 报错 composer any

一、报错案例

composer update 或者 composer install

composer.json依赖文件没有任何问题,依然报错it could not be found in any version

 二、解决

主要就是切换镜像源:

composer config -g repo.packagist composer https://packagist.org

之后再执行composer install即可!

包来源地址查询命令: composer config -l -g

参考:https://blog.csdn.net/qq_35401605/article/details/124894482

标签:could,update,version,报错,composer,any
From: https://www.cnblogs.com/wlei5206/p/18155228

相关文章