今天有人发现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
命令也不起作用。
答案 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"
]
}
}
}