Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading Meteor: Error when running mrt migrate-app

Tags:

meteor

I just upgraded Meteor to 0.9.0 and I got an error when running "mrt migrate-app".

Have I done something wrong?

-- 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!");

First of all I did this (and it seemed to work):

me@ubuntu:/usr/local/lib/node_modules$ sudo npm install -g meteorite
like image 944
user1532669 Avatar asked Aug 26 '14 17:08

user1532669


1 Answers

First you have to update the project

meteor update

Then make sure to update meteorite

sudo npm update -g meteorite

And then run

mrt migrate-app

For more info read:

  • http://blog.percolatestudio.com/engineering/meteor-packaging-questions/ (Especially: How do I migrate my app from Meteorite to the Meteor Package System (0.9.0) ?)
  • https://hackpad.com/Migrating-Apps-UfPrM192vSQ
  • And personal favorite: https://www.discovermeteor.com/blog/updating-to-090/
like image 197
Matyas Avatar answered Sep 30 '22 14:09

Matyas