【问题标题】:Error in installing lumx angular material design framework?安装 lumx 角度材料设计框架时出错?
【发布时间】:2016-02-15 21:46:46
【问题描述】:

我只是尝试使用 lumX,因为它看起来很有前途 https://github.com/lumapps/lumX

1: Downloaded the lumx
2: Did npm install
3: Did bower install lumx

然后在 gulp build 我收到此错误:

Error in plugin 'gulp-sass'
Message:
    core/scss/_lumx.scss
Error: File to import not found or unreadable: bourbon
       Parent style sheet: /Applications/Angular_Projects/KM_lumX/core/scss/_lumx.scss
        on line 5 of core/scss/_lumx.scss
>> @import "bourbon";
   ^

Details:
    formatted: Error: File to import not found or unreadable: bourbon
       Parent style sheet: /Applications/Angular_Projects/KM_lumX/core/scss/_lumx.scss
        on line 5 of core/scss/_lumx.scss
>> @import "bourbon";
   ^

    column: 1
    line: 5
    file: /Applications/Angular_Projects/KM_lumX/core/scss/_lumx.scss
    status: 1
    messageFormatted: core/scss/_lumx.scss
Error: File to import not found or unreadable: bourbon
       Parent style sheet: /Applications/Angular_Projects/KM_lumX/core/scss/_lumx.scss
        on line 5 of core/scss/_lumx.scss
>> @import "bourbon";
   ^

我是否以错误的方式安装它,或者有什么方法可以解决这个错误,我对 scss 和 angular 还是很陌生,任何线索将不胜感激。

这是我的文件夹结构:

【问题讨论】:

  • 检查并复制 .bowerrc 文件,然后执行 bower install lumx 它将完美运行。

标签: javascript angularjs sass gulp angular-material


【解决方案1】:

我通过从 repo 克隆 git 并更新 .bowerrc 文件以在当前目录中包含 Bower 组件的库来解决了同样的问题。

.bowerrc的内容应该是:

{ "directory": "./libs" }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-08-14
    • 2015-10-16
    • 2015-07-28
    • 2019-02-28
    • 1970-01-01
    • 1970-01-01
    • 2018-12-26
    • 1970-01-01
    相关资源
    最近更新 更多