解决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


参考:http://www.blogdaren.com/post-2536.html

问题背景:

  1. # composer require xxx/yyy

结果报错:

  1. [InvalidArgumentException]
  2. Could not find a version of package xxx/yyy matching your minimum-stability (stable).Require it with an explicit version constrai
  3. nt allowing its desired stability.

解决方案:

1、新建 composer.json

2、新增如下内容:

  1. {
  2. "require":{
  3. "xxx/yyy":"dev-master"
  4. }
  5. }
3、执行命令:
  1. # composer install

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM