Laravel 5.2作曲家更新

时间:2016-06-28 21:12:15

标签: php laravel-5 composer-php laravel-5.2

当我尝试运行像composer update这样的作曲家命令时,会抛出错误。

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files


  [RuntimeException]                                                           
  Could not scan for classes inside "tests/TestCase.php" which does not appear to be a file nor a folder                                                  


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

我尝试要求包Image

  

http://image.intervention.io

我在OSX 10.11.5上使用Laravel 5.2和PHP 5.6。

composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "paynl/sdk": "^1.1",
        "barryvdh/laravel-dompdf": "0.6.*",
        "milon/barcode": "^5.2"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "symfony/css-selector": "2.8.*|3.0.*",
        "symfony/dom-crawler": "2.8.*|3.0.*"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "Veluwade\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

1 个答案:

答案 0 :(得分:0)

您是否编辑或删除了tests文件夹中的TestCase.php文件?或者编辑了bootstrap文件夹中的app.php ??

如果已编辑,请还原,然后检查。