流星0.9“列表"显示“这些软件包的新版本可用".但是“更新"不 [英] meteor 0.9 "list" shows "new versions of these packages are available" but "update" doesn't

查看:89
本文介绍了流星0.9“列表"显示“这些软件包的新版本可用".但是“更新"不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ meteor list
...
 * New versions of these packages are available! Run 'meteor update' to update.
$ meteor update
Figuring out the best package versions to use. This may take a moment.
This project is at the latest release which is compatible with your
current package constraints.

请参见下面的简化版本:

See the simplified version below:

list命令(说有可用的更新)和update命令(找不到任何更新)之间似乎存在冲突".怎么会这样?

It seems like there's a "conflict" between the list command which is saying there are updates available, and the update command which can not find any... how can this happen?

推荐答案

问题似乎出在mrt migrate-app脚本上,这是一种方便的升级方式...但是显然有些麻烦.

The problem seemed to be the mrt migrate-app script, which was a convenient way to upgrade... but apparently left some cruft around.

  1. 有人猜测某些软件包有误……使用cmather:iron-router时应为iron:router,更像是……(希望有某种方法可以过滤/投票/识别好"软件包)
  2. 一些软件包添加了像@2.0.0这样的版本后缀,而这些后缀却阻止了更新...因此list说有可用的更新",但是update没有得到它们... <-答案
  1. some of the packages were guessed a bit wrong... with cmather:iron-router when it should be iron:router and more like that... (wish there was some way to filter/vote/identify "good" packages)
  2. some of the packages were added with version suffixes like @2.0.0 and those were holding up the update... so list says "there are updates available" but update doesn't get them... <-- answer

解决方案

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

solution

remove all packages, update, add them all back, without the version suffix... pretty easy to do now that they are all single lines in the .meteor/packages file:

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

这篇关于流星0.9“列表"显示“这些软件包的新版本可用".但是“更新"不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆