Composer php 软件包名称;apzentral/ink“;无效

Composer php 软件包名称;apzentral/ink“;无效,composer-php,Composer Php,当我去递交我的包裹时 显示此错误 The package name apzentral/ink is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "[a-z0-9]([_.-]?[a-z0-9]+)*

当我去递交我的包裹时

显示此错误

The package name apzentral/ink is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9]([_.-]?[a-z0-9]+)*".
我想知道我的git存储库设置有什么问题

这是要转到的链接


谢谢。

如果查看您的
composer.json
文件,您将看到:

"name": " apzentral/ink",
你注意到包名前的空格了吗?这就是导致失败的原因(包名称中的空格无效)


如果您在这里并且composer.json中的包名没有任何问题,那么您可能需要检查您的composer版本。我使用的是Composer版本
2.0.11
。一旦我将它降级到
1.6.3
,它就工作得很顺利。

谢谢,为我指明了正确的方向。我的名字中有一个大写字母,这在PackageGist中无效。这会创建更多的q,为什么降级会解决它?
"name": "apzentral/ink"