当我尝试 git 推送时出现此错误 | [ErrorException]:作曲家失败

i got this error when i tried to git push | [ErrorException] : composer failed

我一直在关注本教程(教程:在 Azure 应用服务中构建 PHP 和 MySQL 应用程序)https://docs.microsoft.com/en-us/azure/app-service/tutorial-php-mysql-app?pivots=platform-linux#deploy-to-azure

问题是当我尝试 git 推送 git push azure master 我收到这个错误。

remote: Loading composer repositories with package information
 remote: Installing dependencies (including require-dev) from lock file
 remote:
 remote:
 remote: An error has occurred during web site deployment.
 remote:   [ErrorException]
 remote: composer failed
 remote:   "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
 remote:
 remote:
 remote: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
 remote:
 remote: Deployment Logs : 'https://larave-tasks.scm.azurewebsites.net/newui/jsonviewer?view_url=/api/deployments/dae345ee76d1755cfccd62004c6fc0c472fed981/log'
 To https://larave-tasks.scm.azurewebsites.net/larave-tasks.git
  * [new branch]      master -> master

谁能帮我解决这个错误...

laravel-tasks 项目已有四年历史。该项目需要 Laravel 5.4 和 PHP 5.6。两人都老了。目前主流PHP版本是7.4。 Laravel 是版本 8。

azure 命令指定的 PHP 7.2 不受项目支持。

您需要将项目下载到您的本地系统,打补丁和更新,然后使用打补丁的版本进行部署。您遇到的错误是由于与作曲家不兼容引起的。您将需要 运行 composer update 这将失败。

除非您对 Laravel 和 PHP 有经验,否则请选择不同的项目来学习。