解决composer报错:Could not find a version of package xxx/yyy matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability
blogdaren
问题背景:
composer require xxx/yyy
结果报错:
[InvalidArgumentException]
Could not find a version of package xxx/yyy matching your minimum-stability (stable). Require it with an explicit version constrai
nt allowing its desired stability.
解决方案:
1、新建 composer.json
2、新增如下内容:
{
“require”: {
“xxx/yyy”: “dev-master” //更换自己的包 “xxx/yyy”,自己的仓库版本 “dev-master”
}
}
3、执行命令:
composer install
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)