2017-03-27 182 views
0

這是package,我想用作曲家。這是我的命令:作曲家要求問題

composer require kiyoh/customerreview

這是我composer.json文件:

"repositories": [ 
     ....... 
     { "type": "vcs", "url": "[email protected]:hans2103/Kiyoh_Customerreview.git" } 
], 
"require": { 
    "kiyoh/customerreview": "2.1.0.11", 
    ...... 
} 

這是結果,我在控制檯得到:

[InvalidArgumentException]                                
    Could not find package kiyoh/customerreview at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability . 

任何想法我究竟做錯了什麼 ?

回答

1

kiyoh/customerreview沒有任何版本。存儲庫僅包含主分支,並且沒有任何標籤。

要解決它,你可以要求更換部分:

"require": { 
    "kiyoh/customerreview": "dev-master", 
    ...... 
} 

這意味着作曲家將使用主分支的源

此外,你需要在頂層加您composer.json

最終,你的composer.json必須是這樣的:

"minimum-stability": "dev", 
"repositories": [ 
     ....... 
     { "type": "vcs", "url": "[email protected]:hans2103/Kiyoh_Customerreview.git" } 
], 
"require": { 
    "kiyoh/customerreview": "dev-master", 
    ...... 
}