简体   繁体   English

作曲家更新引发错误

[英]Composer update throws error

Helllo,你好,

When I try to update my project with composer update I receive this 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:       

When I try this:当我尝试这个时:

composer update --no-scripts


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

It succeeds?成功了吗?

What could be wrong here?这里可能有什么问题?

--EDIT-- - 编辑 -

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>]...

Move php artisan clear-compiled from "pre-update-cmd" to the "post-update-cmd" in your composer.json file将 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM