我刚刚将 Meteor 升级到 0.9.0,运行“mrt migrate-app”时出现错误。
我做错了什么吗?
-- Notice --
0.9.0: Welcome to the new Meteor package system! You can now add any Meteor
package to your app (from more than 1800 packages available on the
Meteor Package Server) just by typing 'meteor add <packagename>', no
Meteorite required.
It looks like you have been using Meteorite with this project. To
migrate your project automatically to the new system:
(1) upgrade your Meteorite with 'npm install -g meteorite', then
(2) run 'mrt migrate-app' inside the project.
Having done this, you no longer need 'mrt' and can just use 'meteor'.
All your package dependencies are already up to date.
me@ubuntu:~/myApp$ mrt migrate-app
/usr/local/lib/node_modules/meteorite/bin/mrt.js:21
throw("Subcommand " + subCommandName + " does not exist!");
首先,我这样做了(而且似乎有效):
me@ubuntu:/usr/local/lib/node_modules$ sudo npm install -g meteorite
首先你必须更新项目
meteor update
然后确保更新陨石
sudo npm update -g meteorite
然后运行
mrt migrate-app
欲了解更多信息,请阅读:
-
http://blog.percolatestudio.com/engineering/meteor-packaging-questions/ http://blog.percolatestudio.com/engineering/meteor-packaging-questions/(尤其:如何将我的应用程序从 Meteorite 迁移到 Meteor Package System (0.9.0)?)
- https://hackpad.com/Migration-Apps-UfPrM192vSQ https://hackpad.com/Migrating-Apps-UfPrM192vSQ
- 以及个人最喜欢的:https://www.discovermeteor.com/blog/updating-to-090/ https://www.discovermeteor.com/blog/updating-to-090/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)