我正在尝试composer-install,并且出现以下错误Your package name access-nyc is invalid, it should have a vendor name, a forward slash, and a package name.
我的包裹名称中包含以下内容:
{
"name": "access-nyc",
"version": "3.8.1",
"description": "Find help in NYC with food, money, housing, work and more on ACCESS NYC",
"homepage": "https://access.nyc.gov",
"authors": [
{
"name": "NYC Opportunity",
"email": "products@nycopportunity.nyc.gov",
"homepage": "http://nyc.gov/opportunity"
},
{
"name": "Blue State Digital",
"homepage": "https://www.bluestatedigital.com"
}
],
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
这是破损的软件包名称,"access-nyc"
,但对我来说看起来不错。有什么问题吗?
答案 0 :(得分:0)
问题出在此错误消息中。 Composer软件包具有组织和软件包名称,因此创建者可以将多个软件包分组在一起。例如,我的有效软件包名称为GregJPreece/phing-vagrant
。
我个人创建的任何程序包都将共享相同的组织前缀。