Doctrine orm 脚本缓存:清除返回,错误代码255致命错误:未捕获错误:类';条令\Bundle\DoctrineCacheBundle\DoctrineC

Doctrine orm 脚本缓存:清除返回,错误代码255致命错误:未捕获错误:类';条令\Bundle\DoctrineCacheBundle\DoctrineC,doctrine-orm,symfony-4.2,Doctrine Orm,Symfony 4.2,我有一个Symfony项目,在本地运行得很好,但是当我把它放在服务器上,并执行命令composer install--首选dist--无交互--无开发--优化自动加载程序时,每次我都会遇到这个错误 [c1131570c@web44 falah]$ rm -rf vendor && composer install --prefer-dist --no-interaction --no-dev --optimize-autoloader Loading composer repo

我有一个Symfony项目,在本地运行得很好,但是当我把它放在服务器上,并执行命令
composer install--首选dist--无交互--无开发--优化自动加载程序
时,每次我都会遇到这个错误


[c1131570c@web44 falah]$ rm -rf vendor && composer install --prefer-dist --no-interaction --no-dev --optimize-autoloader
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 78 installs, 0 updates, 0 removals
  - Installing symfony/flex (v1.4.5): Loading from cache
  - Installing doctrine/cache (v1.8.0): Loading from cache
  - Installing doctrine/collections (v1.6.2): Loading from cache
  - Installing doctrine/event-manager (v1.0.0): Loading from cache
  - Installing doctrine/lexer (1.1.0): Loading from cache
  - Installing doctrine/annotations (v1.7.0): Loading from cache
  - Installing doctrine/reflection (v1.0.0): Loading from cache
  - Installing egulias/email-validator (2.1.10): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.12.0): Loading from cache
  - Installing twig/twig (v2.11.3): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing psr/cache (1.0.1): Loading from cache
Script cache:clear returned with error code 255
!!
!!  Fatal error: Uncaught Error: Class 'Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle' not found in /home/c1131570c/public_html/falah/src/Kernel.php:23
!!  Stack trace:
!!  #0 /home/c1131570c/public_html/falah/vendor/symfony/http-kernel/Kernel.php(424): App\Kernel->registerBundles()
!!  #1 /home/c1131570c/public_html/falah/vendor/symfony/http-kernel/Kernel.php(130): Symfony\Component\HttpKernel\Kernel->initializeBundles()
!!  #2 /home/c1131570c/public_html/falah/vendor/symfony/framework-bundle/Console/Application.php(65): Symfony\Component\HttpKernel\Kernel->boot()
!!  #3 /home/c1131570c/public_html/falah/vendor/symfony/console/Application.php(145): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
!!  #4 /home/c1131570c/public_html/falah/bin/console(42): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput))
!!  #5 {main}
!!    thrown in /home/c1131570c/public_html/falah/src/Kernel.php on line 23
!!
Script @auto-scripts was called via post-install-cmd

最后,我尝试用PHP7.3安装一个服务器,当我用供应商文件传输所有项目时,我不知道问题到底是什么,但目前它是这样工作的。最后,当我用供应商文件传输所有项目时,我不知道问题到底是什么,但目前它是这样工作的