Magento2 Warning: file_put_contents(E:/magento248/generated/metadata/primary|global|plugin-list.php):

Window 上运行命令:setup:di:compile 出现下面错误

php bin/magento s:d:c
Compilation was started.
Plugin list generation... 8/9 [========================>---]  88% 1 min, 18 secs 412.0 MiB
In ErrorHandler.php line 61:

  Warning: file_put_contents(E:/magento248/generated/metadata/primary|global|plugin-list.php): Failed to open stream: No such file or directory in E:\magento248\vendor\magento\framework\Interception\Pl
  uginListGenerator.php on line 411

解决办法

vendor/magento/framework/Interception/PluginListGenerator.php

 $cacheId = implode('-', $this->scopePriorityScheme)."-" . $this->cacheId;

发表评论