0

我想在我的 Meteor 项目中使用带有闪存的路由器,但是当我运行时

mrt add router-with-flash

它会导致此错误:

$ mrt 添加带闪存的路由器
✓ 带闪存的路由器
    标签:https://github.com/egtann/meteor-router.git#v0.4.1

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:151
hrow "签出时出现问题" + self.checkoutType + ": " + (self.co
                                                                    ^
签出标签时出现问题:v0.4.1

在存储库中,没有标签 v0.4.1

$ git ls-remote --tags git://github.com/egtann/meteor-router.git
c73515515f1d267108f78b4928a6866952290761 refs/tags/v0.1.0
bb806c51efe3686a8da6628269aa67a269a4e076 refs/tags/v0.1.1
2c42dcb1510563071903c90e840dfc546c7a50eb refs/tags/v0.2.0
7486a639a6793b65e87c11c102e7ecd84813d9f3 参考/标签/v0.2.1
b1e205f3cbde62ae3c91f06429d681580d9aa322 refs/tags/v0.2.2
0a6431923ba2724727233cf9300cfe81076b9cd 参考/标签/v0.2.3
edd0ad39c66a94536859bd322ea13135afebef0b 参考/标签/v0.2.4
e6718dbccfbbf3f964464053a310ccbcdb766ece refs/tags/v0.2.5
a1866908a9fb6d287bb877c6583cee93f89e378e refs/tags/v0.2.6
c328f72a872ee9b8a6707743576b68ff6aa52a13 refs/tags/v0.3.0
ec83354533169fa7b2214f4e1b2faa87164c090f refs/tags/v0.3.1
bfa1cb328b94278f19fd6cec270f649cbedd5555 refs/tags/v0.3.2
1bb2182407892e9b95f0cf4f15a9a55e0a301c20 refs/tags/v0.3.3

我能用它做什么?

我使用普通路由器,但我需要闪存消息。

4

2 回答 2

0

检查你的 smart.json 文件,看看 router-with-flash-package 是否设置了 v0.4.1-tag。

将其更改为 v0.3.3(或您想要的任何标签)并重试。

于 2013-06-24T12:43:21.373 回答
0

正如 Kristoffer 所说,smart.json 应该是这样的:

{
  "packages": {
    "router-with-flash": {
      "git": "https://github.com/egtann/meteor-router.git",
      "tag": "v0.3.3"
    }
  }
}

但是,还必须指定“git”存储库。

编辑:但是带有“router-with-flash”版本 0.3.3 包的 Meteor (v0.6.4) 应用程序崩溃。我使用常规路由器并通过会话实现了闪存消息。

于 2013-06-25T17:24:25.483 回答