2017-10-17 45 views
0

编译magento时出现代码不存在错误。我的终端日志低于Magento 2.1.4编译时显示错误的命令

[[email protected] ~]$ cd /var/www/html/mage 
[[email protected] 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 

请帮我解决这个问题。

回答

0

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