2015-09-25 115 views
0

我在Github上從存儲庫創建了一個分支,並且希望將其安裝到我的項目中。我有以下composer.json無法通過作曲家安裝分叉的github存儲庫

{ 
    "repositories": [ 
     { 
      "url": "https://github.com/guidobr/instagram-api", 
      "type": "git" 
     } 
    ], 
    "require": { 
     "guidobr/instagram-api": "*" 
    } 
} 

當我嘗試安裝它,我得到這樣的響應:

Loading composer repositories with package information 
Installing dependencies (including require-dev)  
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - The requested package guidobr/instagram-api 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 
    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details. 
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 

我在做什麼錯?嘗試從該鏈接的每個解決方案,但沒有工作。

回答