无法为bootstrap-material-design编译更少

时间:2016-01-11 13:53:06

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

我有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";

我有什么遗失的吗?

1 个答案:

答案 0 :(得分:3)

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