我从Github上的存储库中制作了一个叉子,并希望将它安装在我的项目中。我有下面的composer.json
{
"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.我做错了什么?每个解决方案都试过了,但都没有用。
发布于 2015-09-25 16:50:13
你分叉的回购,但你没有创建一个包装的包装。
如果您检查这个文件https://github.com/GuidoBR/instagram-api/blob/master/composer.json,它仍然在使用cosenary/instagram。
因此,转到http://www.packagist.com/并创建一个新的包,它需要有新的composer.json文件。
https://stackoverflow.com/questions/32786772
复制相似问题