我想創建一個新的作曲家庫包。 我使用作曲藥業包
composer.phar create-project xlix vendor/xlix/xlix 0.3
命令創建的composer.json文件。
在文件系統中,文件composer.json位於vendor/xlix/xlix
下,爲了測試目的,我將它複製到vendor/xlix
。
的composer.json文件內容如下:
{
"name": "xlix/xlix",
"type": "library",
"description": "XLIX package",
"keywords": ["core"],
"homepage": "http://myhomepage",
"license": "GPL",
"authors": [
{
"name": "Florian Kasper",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.2.4"
},
"autoload": {
"psr-0" : {
"Xlix\\Bundle" : "lib/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.0"
}
}
}
然後我嘗試下面的命令:
git:(master) ✗ php composer.phar require xlix/xlix
git:(master) ✗ php composer.phat require vendor/xlix
...
git:(master) ✗ php composer.phar install vendor/xlix
git:(master) ✗ php composer.phar install xlix/xlix
...
每次相同的輸出:
Please provide a version constraint for the xlix/xlix requirement: *
composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package xlix/xlix 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.
在我ROOTDIR/composer.json文件包是註冊表在需求部分編輯。
"jms/security-extra-bundle": "1.2.*",
"jms/di-extra-bundle": "1.1.*",
"kriswallsmith/assetic": "1.1.*@dev",
"xlix/xlix": ">=0.*"
現在我處於絕望的邊緣,不知道該怎麼辦了。
問:
是否有我犯任何錯誤或有什麼我錯過了什麼?
謝謝。回覆晚了非常抱歉 –