magento2 - 无法获取 'frontend/Magento/blank/en_US/css/source/lib/_lib.less' 的内容

标签 magento2

当我用 php bin/magento setup:static-content:deploy 编译静态时,我收到以下错误:

Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'

Unable to get content for 'frontend/Magento/luma/en_US/css/source/lib/_lib.less'

最佳答案

我也面临同样的问题。然后我浏览了GitHub上不同人的评论here .之后,我能够通过恢复根目录下的文件夹“lib/web/css”或整个“lib/web”来修复。
最后运行命令,没有错误:

bin/magento setup:static-content:deploy en_US -f


根据您的安装版本,您可以从这里获取它:https://github.com/magento/magento2/tree/2.3/lib

关于magento2 - 无法获取 'frontend/Magento/blank/en_US/css/source/lib/_lib.less' 的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41125500/

相关文章:

quotes - Magento2从外部获取产品图片

virtualbox - PhpStorm Web 服务器调试验证的问题

rest - 如何在不包括祖 parent 的情况下获得产品所属的类别?

Magento2 备份已禁用

php - Magento 2 订单收集 + 客户收集

magento - 以编程方式设置自定义客户属性值 Magento 2

php - 无效的签名 REST API Magento 2

php - 如何从 Magento 2 官方市场安装扩展

magento2 - 更改 Magento 2 中的默认语言环境不起作用

javascript - Magento 2 : How to call js Function that is in my Require. phtml 文件中的 js 文件