【发布时间】:2015-09-03 00:05:51
【问题描述】:
我创建了一个正在开发的小部件。问题是当我运行时:
composer require chofoteddy/yii2-bootstrap-wizard "*"
我收到以下消息:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for chofoteddy/yii2-bootstrap-wizard * -> satisfiable by chofoteddy/yii2-bootstrap-wizard[dev-master].
- chofoteddy/yii2-bootstrap-wizard dev-master requires vinceg/twitter-bootstrap-wizard * -> no matching package found.
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.
Installation failed, reverting ./composer.json to its original content.
我寻求的是添加https://github.com/VinceG/twitter-bootstrap-wizard.git 存储库作为我项目的依赖项。 “VinceG/twitter-bootstrap-wizard”未在“Packagist”中注册。
我多次修改我的composer.json文件,为了更正它,但我不能让它工作。
我的文件 composer.json:
{
"name": "chofoteddy/yii2-bootstrap-wizard",
"description": "Wizard form based on twitter bootstrap plugin (@VinceG)",
"homepage": "https://github.com/Chofoteddy/yii2-bootstrap-wizard",
"keywords": [
"yii2",
"wizard",
"bootstrap",
"yii2-extension"
],
"type": "yii2-extension",
"version": "0.1",
"license": "MIT",
"authors": [
{
"name": "Christopher",
"email": "chofoteddy88@yahoo.com.mx"
}
],
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"VinceG/twitter-bootstrap-wizard": "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/VinceG/twitter-bootstrap-wizard"
}
],
"autoload": {
"psr-4": {
"chofoteddy\\wizard\\": ""
}
}
}
作曲者信息:
sudo composer self-update
You are already using composer version b2173d28fc8b56236eddc8aa10dcda61471633ec.
【问题讨论】:
-
请提供Minimal, Verifiable, Complete Example。发布您的存储库不是这样做的方法。祝你好运!
-
感谢 Rick,我修改了内容以添加更多信息
标签: php github composer-php packagist