【问题标题】:Meteor Package Management Conflict流星包管理冲突
【发布时间】:2014-04-05 05:25:02
【问题描述】:

当我尝试运行我的流星应用程序时出现此错误:

Problem installing iron-router
  ✘ [0.6.4] conflicts with [tag: https://github.com/EventedMind/iron-router.git#v0.6.4]
Can't resolve dependencies! Use --force if you don't mind mrt taking a wild guess and running your app anyway.

这种情况最近才开始发生,当时我运行 mrt add {{package_name}} 然后 mrt 自行升级所有软件包。我还故意没有将此应用程序升级到 Meteor 的 .8 版本,所以这破坏了一切,因为大多数软件包已经升级并且不向后兼容。

为了解决这个问题,我决定更改顶级 smart.json 以反映升级前的包状态。然后我 rm -rf'ed iron-router 以及 accounts-entry (取决于 Iron-router),对它们运行 mrt remove,然后尝试再次添加它们。这适用于包级别 - 它产生正确的 - 但我仍然收到上面的错误并且我的应用程序无法运行。

{
  "packages": {
    "iron-router": {
      "git": "https://github.com/EventedMind/iron-router.git",
      "tag": "v0.6.4"
    },
    "accounts-entry": {
      "git": "https://github.com/BeDifferential/accounts-entry.git",
      "tag": "v0.6.2"
    },
    "accounts-t9n": {
      "git": "https://github.com/softwarerero/meteor-accounts-t9n.git",
      "tag": "v0.0.2"
    },
    "typeahead": {},
    "roles": {
      "git": "https://github.com/alanning/meteor-roles.git",
      "tag": "v1.2.6"
    },
    "bootstrap-themes": {},
    "font-awesome": {}
  }
}

【问题讨论】:

  • ~/.meteorite 目录中听起来像一团糟。您是否尝试过删除它并从头开始安装所有内容? (即mrt install
  • 不,我没有。我现在就试试。
  • 当我这样做时,我收到另一个错误消息:✘ [0.6.4] 与 [tag: github.com/EventedMind/iron-router.git#v0.6.4] 冲突
  • 您使用的是什么版本的流星? (即 ./meteor/release 文件中的内容)您还可以尝试手动检查特定标签并将符号链接放入 packages 目录中(这或多或少是 meteorite 所做的)。运行meteor(你可以忽略mrt)看看会发生什么。
  • 我在 0.7.2。在我卸载整个 .meteorite 目录之前,该应用程序会启动但没有任何工作,因为会出现各种错误,例如“未找到流星”、“未找到模板”、“未找到路由器”等。我以为这是奇怪,但实际上只是其他东西坏了的结果。

标签: meteor meteorite iron-router


【解决方案1】:

我通过删除 ~/.meteorite 目录的复杂过程解决了这个问题,然后以特定顺序重新安装所有内容。

【讨论】:

    猜你喜欢
    • 2015-12-08
    • 2015-12-26
    • 2022-11-10
    • 1970-01-01
    • 1970-01-01
    • 2016-08-28
    • 1970-01-01
    • 2012-02-23
    • 1970-01-01
    相关资源
    最近更新 更多