Laravel 5.2编辑器更新错误

时间:2016-01-16 11:26:42

标签: php laravel composer-php

今天有人发现composer update错误吗?

这是我的错误:

当我跑composer update时,我得到了这个

  

php artisan clear-compiled
    [PDOException]
    SQLSTATE [HY000] [2002]没有这样的文件或目录
    脚本php artisan clear-compiled处理返回的错误前更新-cmd事件

     

[RuntimeException的]
  错误输出:
  update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [ - no-dev] [--lock] [--no-plugins] [ - 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] [ - ] [] ...

同样php artisan命令也不起作用。

1 个答案:

答案 0 :(得分:0)

排列软件包的composer.json文件中的括号:

{
    "name": "laraveldaily/timezones",
    "description": "Deomo-package to show time",
    "authors": [
        {
            "name": "Laravel Daily",
            "email": "info@laraveldaily.com"
        }
    ],
    "minimum-stability": "dev",
    "require": {},


    "extra": {
        "laravel": {
            "providers": [
                "Laraveldaily\\Timezones\\TimezonesServiceProvider"
            ]
        }
    }
}