meteor 0.9 “list” shows “new versions of these packages are available” but “update” doesn't

无人久伴 提交于 2019-12-04 19:23:15

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

problems

  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

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!