我有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";
我有什么遗失的吗?
答案 0 :(得分:3)
您收到错误是因为grunt less插件无法找到需要导入的文件。由于文件指向/bower_components
目录,问题可能是您忘记运行创建bower install
目录的/bower_components
并安装丢失的文件。