流星0.9“列表"显示“这些软件包的新版本可用".但是“更新"不 [英] meteor 0.9 "list" shows "new versions of these packages are available" but "update" doesn't
问题描述
$ 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.
- 有人猜测某些软件包有误……使用
cmather:iron-router
时应为iron:router
,更像是……(希望有某种方法可以过滤/投票/识别好"软件包) - 一些软件包添加了像
@2.0.0
这样的版本后缀,而这些后缀却阻止了更新...因此list
说有可用的更新",但是update
没有得到它们... <-答案
- some of the packages were guessed a bit wrong... with
cmather:iron-router
when it should beiron:router
and more like that... (wish there was some way to filter/vote/identify "good" packages) - some of the packages were added with version suffixes like
@2.0.0
and those were holding up the update... solist
says "there are updates available" butupdate
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屋!