Magento 2.3.2:尝试安装新主题时出错
Magento 2.3.2: Error when attempting to install new theme
我正在尝试创建一个基于 Luma 的新主题。
我运行之后:
php bin/magento setup:upgrade
我运行:
php -dmemory_limit=5G bin/magento setup:static-content:deploy -f
我收到以下错误:
In File.php line 151:
The contents from the
"/Applications/MAMP/htdocs/magento2/pub/static/frontend/Guidance
/m2-theme/en_US/mage/translate-inline-vde.css" file can't be read.
Warning! file_get_contents(/Applications/MAMP/htdocs/magento2/pub/static/frontend/Guidance/m2-theme/en_US/mage/translate-inline-vde.css): failed to open stream: No such file or directory
我好像缺少一些必要的文件。任何帮助,将不胜感激。谢谢!
您似乎没有授予 pub 文件夹权限。
请尝试以下命令:
chmod -R 777 pub/ var/ generated/
注意:仅在 Ubuntu OS 的情况下。
我正在尝试创建一个基于 Luma 的新主题。
我运行之后:
php bin/magento setup:upgrade
我运行:
php -dmemory_limit=5G bin/magento setup:static-content:deploy -f
我收到以下错误:
In File.php line 151:
The contents from the
"/Applications/MAMP/htdocs/magento2/pub/static/frontend/Guidance
/m2-theme/en_US/mage/translate-inline-vde.css" file can't be read.
Warning! file_get_contents(/Applications/MAMP/htdocs/magento2/pub/static/frontend/Guidance/m2-theme/en_US/mage/translate-inline-vde.css): failed to open stream: No such file or directory
我好像缺少一些必要的文件。任何帮助,将不胜感激。谢谢!
您似乎没有授予 pub 文件夹权限。
请尝试以下命令:
chmod -R 777 pub/ var/ generated/
注意:仅在 Ubuntu OS 的情况下。