【问题标题】:momentjs not working with meteormomentjs 不能与流星一起使用
【发布时间】:2014-04-21 19:41:36
【问题描述】:

我想用this package

我在 Meteor 项目中运行了 mrt add bootstrap3-datetimepicker。 接下来我按照说明运行mrt install momentmrt update moment

当我现在执行mrt run 时,我收到以下错误:

=> Errors prevented startup:

While building the application:
error: no such package: 'moment'

为什么我会得到这个?

如果我输入 mrt add moment 我会得到:

/usr/local/lib/node_modules/meteorite/lib/meteor.js:154
          throw "Error running a command: " + error;
                                            ^
Error running a command: Error: Command failed: => Errors while scanning packages:

While building package `bootstrap3-datetimepicker`:
error: no such package: 'moment'

【问题讨论】:

  • 您是否尝试过使用“mrt add moment”而不是“mrt install moment”添加软件包?

标签: meteor momentjs meteorite


【解决方案1】:

对于现在遇到此问题的任何人,moment.js 正式支持 Meteor:

meteor add momentjs:moment

ref

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-07
    • 1970-01-01
    • 1970-01-01
    • 2017-01-19
    • 1970-01-01
    • 2016-08-02
    • 2023-03-11
    • 1970-01-01
    相关资源
    最近更新 更多