zl程序教程

您现在的位置是:首页 >  其他

当前栏目

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

IT 解决 报错 not of with an Find
2023-09-27 14:26:38 时间

参考: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