我的第一步TYPO3 CMS
和composer
...但我无法安装自己的分发包。尝试:
composer require stsa/hellotypo3
我有这个错误:
[InvalidArgumentException]
Could not find a version of package stsa/hellotypo3 matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.
我已经TYPO3 9.5.1
通过 composer 安装并(用于测试)安装了一个 3rd 方扩展mask
,如composer require mask/mask
. 它完美地工作。
这是我composer.json
的分发扩展,我已上传到packgist
. json-file是有效的,但是一定有的。错误的 ..
{
"name": "stsa/hellotypo3",
"type": "typo3-cms-extension",
"description": "FLUID Templates & TypoScript",
"homepage": "https://www.hello.de/",
"keywords": [
"TYPO3",
"CMS",
"extension"
],
"authors": [
{
"name": "Stsa",
"email": "contact@hello.de",
"role": "Developer",
"homepage": "https://www.hello.de/"
}
],
"license": [
"GPL-2.0-or-later"
],
"require": {
"typo3/cms-core": "^9.5"
},
"autoload": {
"psr-4": {
"Stsa\\Hellotypo3\\": "Classes/"
}
},
"replace": {
"hellotypo3": "self.version",
"typo3-ter/hellotypo3": "self.version"
}
}
没办法..它不起作用。我也尝试设置"minimum-stability": "stable"
. 但老实说,我不知道我能做什么..?!有人能帮我吗?谢谢。
编辑 1:今天我在 packgist 更新了我自己的扩展。它现在必须与此供应商/名称一起可用。
编辑2:现在我通过sitepackagebuilder做了一个测试扩展,上传到git,sumbit到packgist。尝试通过composer require hellotypo3de/hellotest
.. 安装仍然相同的错误警告:Could not find a version of package hellotypo3de/hellotest matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.
..?! 我的错在哪里?