簡體   English   中英

作曲家更新引發錯誤

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

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM