【问题标题】:Unable to compile less for bootstrap-material-design无法为 bootstrap-material-design 编译更少
【发布时间】:2016-04-15 20:41:31
【问题描述】:

我有一个全新安装的https://github.com/FezVrasta/bootstrap-material-design。我尝试使用grunt 编译它,但出现以下错误:

 Running "less:material" (less) task  FileError:
 '../bower_components/bootstrap/less/variables.less' wasn't found.
 Tried -
 bower_components/bootstrap/less/variables.less,bower_components/bootstrap/less/variables.less,../bower_components/bootstrap/less/variables.less
 in less/_import-bs-less.less on line 1, column 1:  1 @import
 "../bower_components/bootstrap/less/variables.less";  2 //@import
 "../bower_components/bootstrap/less/mixins.less";

我有什么遗漏吗?

【问题讨论】:

    标签: twitter-bootstrap gruntjs less bootstrap-material-design


    【解决方案1】:

    您收到错误是因为 grunt less 插件无法找到需要导入的文件。由于文件指向/bower_components 目录,问题可能是您忘记运行bower install,它创建/bower_components 目录并安装丢失的文件。

    【讨论】:

      猜你喜欢
      • 2021-04-07
      • 1970-01-01
      • 2014-01-21
      • 2010-11-24
      • 1970-01-01
      • 2018-01-17
      • 2020-09-12
      • 2017-10-14
      • 1970-01-01
      相关资源
      最近更新 更多