Magento 2.1.4命令在编译时显示错误

时间:2017-10-17 12:08:24

标签: magento2

我正在编译magento时生成不存在错误。我的终端日志在

之下
[centos@ip-172-31-5-26 ~]$ cd /var/www/html/mage
[centos@ip-172-31-5-26 mage]$ sudo php bin/magento setup:di:compile
Compilation was started.
Proxies code generation... 0/7 [>---------------------------]   0% 1 sec 42.0 MiProxies code generation... 1/7 [====>-----------------------]  14% 1 sec 46.0 MiRepositories code generation... 1/7 [====>-----------------------]  14% 1 sec 46.0 MiB


  [RuntimeException]
  Source class "\ProductRepositoryInterface" for "ProductRepositoryInterfaceF
  actory" generation does not exist.

setup:di:compile

请帮我解决此问题。

1 个答案:

答案 0 :(得分:0)

请尝试清理文件夹var / generation,然后再试一次。也许有些文件坏了,需要确保所有文件都是最新的