3

我有一个全新安装的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";

有什么我想念的吗?

4

1 回答 1

4

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

于 2016-05-12T04:51:05.440 回答