【问题标题】:Error while writing new package in composer.json在 composer.json 中编写新包时出错
【发布时间】:2015-10-23 13:28:21
【问题描述】:
{
    "name": "marvel/xmen",
    "description": "Mutants saving the world for people who hate them",
    "keywprds": ["mutant", "superhero", "bald", "guy"],
    "homepage": "htp://marvel.com/mutants",
    "time": "1963-09-01",
    "license": "MIT",
    "authors": 
            [
        {
            "name": "Stan Lee"
            "email": "StanLee@gmail.com"
            "homepage": "http://marvel.com",
            "role": "engineer"  
        }

    ]              
}

【问题讨论】:

    标签: json laravel-4 dependencies package composer-php


    【解决方案1】:

    “作者”数组中缺少逗号。应该是这样的:

    {
        "name": "marvel/xmen",
        "description": "Mutants saving the world for people who hate them",
        "keywprds": ["mutant", "superhero", "bald", "guy"],
        "homepage": "htp://marvel.com/mutants",
        "time": "1963-09-01",
        "license": "MIT",
        "authors": 
                [
            {
                "name": "Stan Lee",
                "email": "StanLee@gmail.com",
                "homepage": "http://marvel.com",
                "role": "engineer"  
            }
    
        ]              
    

    }

    【讨论】:

      猜你喜欢
      • 2020-04-12
      • 1970-01-01
      • 2013-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-27
      • 1970-01-01
      相关资源
      最近更新 更多