无法安装Meteor router-with-flash软件包

时间:2013-06-24 12:36:03

标签: meteor meteorite flash-message

我想在我的Meteor项目中使用router-with-flash,但是当我运行时

mrt add router-with-flash

导致此错误:

$ mrt add router-with-flash
✓ router-with-flash
    tag: https://github.com/egtann/meteor-router.git#v0.4.1

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:151
hrow "There was a problem checking out " + self.checkoutType + ": " + (self.co
                                                                    ^
There was a problem checking out tag: 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    refs/tags/v0.2.1
b1e205f3cbde62ae3c91f06429d681580d9aa322    refs/tags/v0.2.2
0a6431923ba2724727233cf9300cdfe81076b9cd    refs/tags/v0.2.3
edd0ad39c66a94536859bd322ea13135afebef0b    refs/tags/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

我该怎么办?

我使用了regular router,但我需要flash消息。

2 个答案:

答案 0 :(得分:0)

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

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

答案 1 :(得分: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)应用程序崩溃了。我使用常规路由器并在会话中实现了flash消息。

相关问题