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