在composer.json中编写新包时出错

时间:2015-07-31 19:06:57

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

{
    "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"  
        }

    ]              
}

1 个答案:

答案 0 :(得分:0)

You are missing commas in the "authors" array. Should be as such:

{
    "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"  
        }

    ]              

}