首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法通过composer安装分叉github存储库

无法通过composer安装分叉github存储库
EN

Stack Overflow用户
提问于 2015-09-25 16:33:08
回答 1查看 522关注 0票数 2

我从Github上的存储库中制作了一个叉子,并希望将它安装在我的项目中。我有下面的composer.json

代码语言:javascript
复制
{
    "repositories": [
        {   
            "url": "https://github.com/guidobr/instagram-api",
            "type": "git"
        }   
    ],  
    "require": {
        "guidobr/instagram-api": "*" 
    }   
}

当我试图安装它时,我会得到以下响应:

代码语言:javascript
复制
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.

我做错了什么?每个解决方案都试过了,但都没有用。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-25 16:50:13

你分叉的回购,但你没有创建一个包装的包装。

如果您检查这个文件https://github.com/GuidoBR/instagram-api/blob/master/composer.json,它仍然在使用cosenary/instagram。

因此,转到http://www.packagist.com/并创建一个新的包,它需要有新的composer.json文件。

票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32786772

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档