当我尝试运行我的meteor应用程序时出现此错误:
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铁路由器以及帐户进入(取决于铁路由器),对它们运行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": {}
}
}
答案 0 :(得分:0)
我通过删除〜/ .meteorite目录,然后按特定顺序重新安装所有内容的复杂过程解决了这个问题。