我试图将我的流星应用程序从0.8something升级到0.9.1.1现在
无法解析此项目的指定约束:错误:冲突:blaze@1.0.0 vs 2.0.0
我不知道该怎么办.我尝试运行meteor list,meteor remove但无论我运行什么meteor命令,我都会收到此错误.
我做的步骤是
meteor update更新为Meteor 0.9.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.
Run Code Online (Sandbox Code Playgroud)
但是现在我无法做任何事情,因为我总是得到错误
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
Run Code Online (Sandbox Code Playgroud)
请帮忙排除故障.谢谢.
正如我在这里想到的,也许你应该尝试一下:
删除所有包,更新,将它们全部添加回来,没有版本后缀...现在很容易做到,因为它们都是 .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
Run Code Online (Sandbox Code Playgroud)