【问题标题】:Could not resolve the specified constraints for this project: Error: conflict: blaze@1.0.0 vs 2.0.0无法解决此项目的指定约束:错误:冲突:blaze@1.0.0 vs 2.0.0
【发布时间】:2014-09-25 21:28:39
【问题描述】:

我尝试将我的流星应用从 0.8something 升级到 0.9.1.1,现在

无法解决此项目的指定约束:错误: 冲突:blaze@1.0.0 与 2.0.0

我不确定如何继续。我尝试运行 meteor listmeteor remove 但无论我运行什么流星命令,我都会收到此错误。

我做的步骤是

  1. 运行meteor update

更新到 Meteor 0.9.1.1。

  1. 运行mrt migrate-app

有一些错误

 Error: The version 1.2.11 of package roles has not yet been migrated
 Error: The version 1.2.0 of package accounts-meld has not yet been
 migrated Error: The version 2.4.13 of package kadira has not yet been
 migrated Error: The version 0.4.8 of package analytics has not yet
 been migrated Error: The version 2.1.0.2 of package momentjs has not
 yet been migrated Error: The version 1.0.2 of package subs-manager has
 not yet been migrated

 If you want to continue, remove the package(s) from smart.json, run
 `mrt install`, and try again. After you have successfully migrated,
 you can add them back but note:   You will NOT receive further
 updates!. See https://hackpad.com/Migrating-Apps-UfPrM192vSQ for more
 information.
  1. 从 smart.json 中删除了这些包并运行 mrt install。没有错误
  2. 重新运行 mrt migrate-app。这次没有错误。

但现在我什么都做不了,因为我总是得到错误

 meteor list

Figuring out the best package versions to use. This may take a moment.
Refreshing package metadata. This may take a moment.
Could not resolve the specified constraints for this project:
Error: conflict: blaze@1.0.0 vs 2.0.0

请帮助解决问题。谢谢。

【问题讨论】:

  • 尝试删除.meteor/vesions 文件,然后使用meteor add 从头开始​​添加您的包。记住正确的前缀。
  • 我刚试过。没运气。即使在删除版本文件并执行流星添加 X:y 后也会导致错误消息
  • 我最终删除了 .meteor/packages 文件,重新添加它,然后手动添加所有包。我不确定这是否是我应该做的,但它似乎奏效了。
  • 太令人沮丧了...最近对我来说的最后两个流星更新充满了突破性的变化...无论如何,很麻烦,但是要通过并在大多数 app.use(*) 调用之前添加正确的用户:每个包的前缀解决了我的问题。另外,mrt migrate-package...
  • @landland 建议在 0.9.4 中为我工作,以克服未知的包和限制

标签: meteor


【解决方案1】:

我发现here,也许你应该试试:

删除所有包,更新,添加它们,没有版本后缀......现在很容易做到,因为它们都是 .meteor/packages 文件中的单行:

sed -e 's/^[a-zA-Z0-9]/meteor remove &/' .meteor/packages | sed 's/\@[0-9\.]*//g' > packages-rm.sh
sed -e 's/ remove / add /' packages-rm.sh > packages-add.sh
bash packages-rm.sh
meteor list  # should be empty
meteor update
bash packages-add.sh
meteor list

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-02-06
    • 2016-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多