我正在尝试安装此处的软件包:
https://cartalyst.com/manual/data-grid/3.0 我的作曲家文件如下:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "4.2.*"
, "barryvdh/laravel-migration-generator": "dev-master", "fzaninotto/faker": "1.2.*@dev", "aws/aws-sdk-php": "2.*", "cartalyst/data-grid": "3.0.*" },
"repositories": [
{
"type": "composer",
"url": "https://packages.cartalyst.com"
}
]
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}
不幸的是我的json无效且我无法修复它我按照安装说明按照问题开头的链接谢谢
答案 0 :(得分:2)
repositories
数组和autoload
对象之间需要逗号。
...
"repositories": [
{
"type": "composer",
"url": "https://packages.cartalyst.com"
}
],
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
...