本文小编就为大家带来一篇讲到composer添加国内镜像源,composer requires catfan/medoo, it could not be found in any version,composer无法下载 medoo,依赖。小编觉得挺不错的,现在就分享给大家,如果你在找composer查看使用的镜像源,composer.json添加国内源,composer全局配置中国镜像源,也可以做个参考。一起跟随小编过来看看吧。
composer添加国内镜像源,composer requires catfan/medoo, it could not be found in any version,composer无法下载 medoo,依赖
作者:小程序爱好者 发布时间:2021-06-08
使用composer管理依赖,
有时会遇到下面的提示:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires catfan/medoo, it could not be found in any version, there may be a typo in the package name.
意思是找不到相关的依赖,
解决的方法就是更换镜像源,
composer.json中添加
{
"repositories":{
"packagist":{
"type":"composer"
,"url":"https://mirrors.aliyun.com/composer/"
}
}
}
或者全局配置
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer查看使用的镜像源
composer config -l -g
[repositories.packagist.org.type] composer
[repositories.packagist.org.url] https://mirrors.aliyun.com/composer/
[process-timeout] 300
[use-include-path] false
[preferred-install] auto
[notify-on-install] true
其中 repositories.packagist.org.url 表示正在使用的镜像源。
猛击这里,
观看子恒老师《微信小程序支付开发实战》系列视频
了解实现过程和下载相关源代码
声明:部分文章或图片未能及时与原作者取得联系,若来源标注错误或侵犯到您的权益烦请告知QQ:2334512685,我们会及时删除。
发布:秦子恒博客,欢迎转载分享,请保留出处。
composer添加国内镜像源,composer requires catfan/medoo, it could not be found in any version,composer无法下载 medoo,依赖链接:https://www.qinziheng.com/details/9720/
composer添加国内镜像源,composer requires catfan/medoo, it could not be found in any version,composer无法下载 medoo,依赖相关文章