Composer更新引发错误



Helllo,

当我尝试用composer update更新我的项目时,我收到了这个错误:

> php artisan clear-compiled

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

将composer.json文件中从"pre-update cmd"编译的php artisan clear移到"post-update md"

"post-update-cmd": [
  "php artisan clear-compiled",
  "php artisan optimize"
]

相关内容

  • 没有找到相关文章

最新更新