我已经更新到 0.6.0 但想在 0.5.8 中运行我的项目。所以当我运行时:
流星——发布 0.5.8
它返回
0.5.8:未知版本。
定位特定版本的正确格式是什么?
您需要使用陨石才能使用旧版本:https ://github.com/oortcloud/meteorite 。目前--release
无法将旧版本的流星定位到 0.6.0。
通过安装陨石
npm install -g meteorite
然后在您的项目中运行mrt
,以便它允许陨石将项目本地化为一个版本的流星。
You will notice meteorite has created a smart.json in your project. Edit the smart.json
it creates to something like
{
"meteor": {
"tag": "v0.5.8"
}
Then just run mrt
to get it running meteor version 0.5.8
. Only that project would be affected. So your other projects can still run 0.6.0
Of note is meteorite is also very helpful. It allows you to use the packages over at http://atmosphere.meteor.com/ in your project.
Update: To use versions above 0.6.0 on your meteor use --release. e.g
meteor --release 0.6.1
For Meteor releases above 0.6.0, you can add the --release
tag to any meteor
command:
meteor create test --release 0.6.0
Meteorite can easily pull down earlier releases:
mrt create test --tag v0.5.9
The result is a "smart.json" file that will install the previous Meteor version when you run mrt
. You could also manually edit the "smart.json" file:
{
"meteor": {
"git": "https://github.com/meteor/meteor.git",
"tag": "v0.5.9"
},
"packages": {}
}
不幸的是,您不能针对 0.6.0 之前的任何版本,此功能只会在 Meteor 的下一个版本发布时提供帮助。