简体   繁体   English

安装lumx angular材料设计框架时出错?

[英]Error in installing lumx angular material design framework?

I just tried to use the lumX as it seems promising Angular Material dev and quick development for frontend, however I am getting the below error after going through their doc spec https://github.com/lumapps/lumX我只是尝试使用 lumX,因为它看起来很有前途的 Angular Material 开发和前端的快速开发,但是在通过他们的文档规范https://github.com/lumapps/lumX后我收到了以下错误

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

then on gulp build I am getting this error:然后在 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";
   ^

Am I installing it in wrong way or is there any way to resolve this error, I am quite new to scss and angular, any lead will be appreciated.我是否以错误的方式安装它,或者有什么方法可以解决这个错误,我对 scss 和 angular 很陌生,任何线索都将不胜感激。

Here is my folder structure :这是我的文件夹结构: 在此处输入图片说明

I had the same issue solved it by cloning the git from the repo and updating the .bowerrc file to include libs in current directory for bower components.我通过从 repo 克隆 git 并更新.bowerrc文件以在 bower 组件的当前目录中包含 libs 解决了同样的问题。

Contents of .bowerrc should be: .bowerrc内容应该是:

{ "directory": "./libs" }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM