如何在流星下安装凉亭包?

时间:2016-10-28 12:11:17

标签: meteor bower meteor-blaze semantic-ui

我正在尝试安装此https://github.com/mdehoog/Semantic-UI-Calendar包。我从项目文件夹中安装了npm install -g bower这个浏览器包管理器。然后我从项目文件夹中安装了bower install --save semantic-ui-calendar的日历包。

启动我的应用后,我收到以下错误消息:

  

使用less处理文件时(对于目标web.browser):

     

bower_components /语义-UI-日历/ SRC /定义/模块/ calendar.less:18:   未知导入:../../ theme.config

     

bower_components / semantic-ui-calendar / src / theme.less:3:8:变量   @themesFolder未定义

我应该在哪里

<script type="text/javascript" src="/bower_components/semantic-ui-calendar/dist/calendar.min.js"></script>
<link rel="stylesheet" href="/bower_components/semantic-ui-calendar/dist/calendar.min.css" />

@import 'definitions/modules/calendar';

  lessOptions: {
    paths: [
      'bower_components/semantic-ui-calendar/src',
      ...
    ]
  }

来自安装指南?这个日历包是否可以与meteor 1.4一起使用?

1 个答案:

答案 0 :(得分:0)

不推荐使用bower包。由于Meteor允许直接使用npm包,所以你想要的bower包应该有一个npm等价物,因此可以用npm install安装......

有一个包https://atmospherejs.com/mquandalle/bower允许安装bower模块,但你应该避免这样做。

相关问题