[英]Composer update throws error
你好,
当我尝试使用composer update
更新我的项目时,我收到此错误:
> php artisan clear-compiled
[Symfony\Component\Debug\Exception\FatalErrorException]
parse error
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output:
当我尝试这个时:
composer update --no-scripts
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
成功了吗?
这里可能有什么问题?
- 编辑 -
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
将 php artisan clear-compiled 从“pre-update-cmd”移动到 composer.json 文件中的“post-update-cmd”
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.