升级Meteor:运行mrt migrate-app时出错

use*_*669 5 meteor

我刚刚将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!");
Run Code Online (Sandbox Code Playgroud)

首先,我做了这个(它似乎工作):

me@ubuntu:/usr/local/lib/node_modules$ sudo npm install -g meteorite
Run Code Online (Sandbox Code Playgroud)

Mat*_*yas 10

首先,您必须更新项目

meteor update
Run Code Online (Sandbox Code Playgroud)

然后确保更新陨石

sudo npm update -g meteorite
Run Code Online (Sandbox Code Playgroud)

然后运行

mrt migrate-app
Run Code Online (Sandbox Code Playgroud)

欲了解更多信息:

  • 运行`mrt --version`会给你0.9.0吗?(不幸的是,我不能重现这个问题) (2认同)
  • 我解决了这个问题.出于某种原因,我在/ usr/local/bin中有一个`mrt`文件,在我的主目录中有一个.我试过两个,我家里的那个工作:) (2认同)