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

时间:2014-09-15 18:51:38

标签: meteor

我尝试将我的meteor应用程序从0.8something升级到0.9.1.1,现在

  

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

我不知道该怎么办。我尝试运行meteor listmeteor remove,但无论我运行什么meteor命令,我都会收到此错误。

我所做的步骤是

  1. 运行meteor update
  2.   

    更新为Meteor 0.9.1.1。

    1. 运行mrt migrate-app
    2. 遇到了一些错误

       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. reran mrt migrate-app。这次没有错误。
      3. 但是现在我无法做任何事情,因为我总是得到错误

         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
        

        请帮忙排查问题。感谢。

1 个答案:

答案 0 :(得分:3)

当我想出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