Php magento:创建店面主题时发生随机致命错误

Php magento:创建店面主题时发生随机致命错误,php,magento,magento2,fatal-error,Php,Magento,Magento2,Fatal Error,我是Magento的新手,几天前我安装了Magento,现在我正在开发一个店面主题示例。但在配置和安装它之前,我刚刚开始在用户端和管理端都遇到未知错误 Fatal error: Uncaught Error: Class 'Magento\Framework\App\DeploymentConfig\Reader' not found in C:\xampp\htdocs\magento\vendor\magento\framework\App\ObjectManagerFactory.p

我是Magento的新手,几天前我安装了Magento,现在我正在开发一个店面主题示例。但在配置和安装它之前,我刚刚开始在用户端和管理端都遇到未知错误

 Fatal error: Uncaught Error: Class 'Magento\Framework\App\DeploymentConfig\Reader' not found 
 in C:\xampp\htdocs\magento\vendor\magento\framework\App\ObjectManagerFactory.php:215 Stack 
 trace: #0 C:\xampp\htdocs\magento\vendor\magento\framework\App\ObjectManagerFactory.php(116): 
 Magento\Framework\App\ObjectManagerFactory- 
 >createDeploymentConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), 
 Object(Magento\Framework\Config\File\ConfigFilePool), Array) #1 
 C:\xampp\htdocs\magento\vendor\magento\framework\App\Bootstrap.php(211): 
 Magento\Framework\App\ObjectManagerFactory->create(Array) #2 
 C:\xampp\htdocs\magento\vendor\magento\framework\App\Bootstrap.php(126): 
 Magento\Framework\App\Bootstrap- 
 >__construct(Object(Magento\Framework\App\ObjectManagerFactory), 'C:\\xampp\\htdocs...', Array) 
 #3 C:\xampp\htdocs\magento\index.php(36): 
 Magento\Framework\App\Bootstrap::create('C:\\xampp\\htdocs...', Array) #4 {main} thrown in 
 C:\xampp\htdocs\magento\vendor\magento\framework\App\ObjectManagerFactory.php on line 215
当我尝试在Magento目录中运行任何命令时,它在命令行中显示以下错误:

PS C:\xampp\htdocs\magento> php bin/magento cashe:flush
An abstract factory could not create an instance of magentoframeworkappdeploymentconfig(alias: 
Magento\Framework\App\DeploymentConfig).
我尝试通过
composer update
重新安装Magento,但这也无法解决问题

非常感谢


编辑:稍后我还删除了我的新店面主题目录,但没有乐趣。

我不知道这是否是您出错的原因,但您在刷新缓存命令中有一个输入错误
PS C:\xampp\htdocs\magento>php-bin/magento-cashe:flush
应该是
PS C:\xampp\htdocs\magento>php-bin/magento-cache:flush
。我在降级版本后遇到了这个错误,不知道你是否发现了这个问题(如果不是因为打字错误)?