我正在按照教程从 webtuts(http://webdesign.tutsplus.com/tutorials/cms-tutorials/styling-our-ghost-theme-with-less/)构建一个幽灵主题,但是偶然发现了一个问题.
我已经按照所有步骤正确安装了 grunt 和 bower - grunt 引起了问题,但是我使用 sudo 命令绕过它。
当我尝试编辑 layout.less 并保存它时,在 watch 命令运行时,我收到以下错误:
>> File "LESS/layout.less" changed.
Running "less:components" (less) task
>> FileError: 'lesshat.less' wasn't found in LESS/less_imports.less on line 2, column 1:
>> 1 //Make lesshat mixin library available
>> 2 @import 'lesshat.less';
>> 3
Warning: Error compiling LESS. Use --force to continue.
Aborted due to warnings.
我从下载的文件中替换了lesshat文件,但错误仍然存在。
任何帮助将非常感激!
谢谢