2013-10-29 76 views
2

我想包括我在github上使用作曲家創建的存儲庫。 在我composer.json我有:不能用戶作曲家安裝自己的git存儲庫

"repositories": [ 
    ... 
    { 
     "type": "vcs", 
     "url": "https://github.com/unknownfrequency/zendservice_discogs" 
    } 
], 

"require": { 
    "unknownfrequency/zendservice_discogs": "dev-master", 
} 

當我運行 $>作曲家安裝-vvv我得到:

@unknown-2~/workspace/imusic $ composer install -vvv 
Downloading composer.json 
Loading composer repositories with package information 
... 
Downloading ..//packages.zendframework/packages.json 
Downloading ...api.github/repos/unknownfrequency/zendservice_discogs 
Downloading   ...github/repos/unknownfrequency/zendservice_discogs/contents/composer.json?ref=master 
Downloading ../api.github/repos/unknownfrequency/zendservice_discogs/commits/master 
Downloading ...//api.github/repos/unknownfrequency/zendservice_discogs/tags 
Downloading ...//api.github/repos/unknownfrequency/zendservice_discogs/git/refs/heads 
Reading composer.json of zendframework/zendservice-discogs (master) 
Importing branch master (dev-master) 
Downloading https://packagist.org/packages.json 
Downloading https://packagist.org/p/provider-   latest$cf8f23c1297b4c86275ae395aed6402ba4f5cc186e587b80f8dd5ecca7d60e3f.json 
Installing dependencies 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - The requested package unknownfrequency/zendservice_discogs could not be found in  any version, there may be a typo in the package name. 

Potential causes: 
- A typo in the package name 
- The package is not available in a stable-enough version according to your minimum- stability setting 

我試過現在解決這個這麼多小時。希望有人能幫助!

回答

0

它實際上只是一個做的事:

php composer.phar self-update 
1

包根據您的最小 - 穩定設置」不提供一個穩定的,足以版本

這就是問題所在。你需要一個發展分支,但你不允許包括髮展穩定。一般

添加"minimum-stability":"dev"您composer.json文件