Meteor update: error starting mrt migrate-app

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

Did I do 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 
+5
source share
3 answers

First you need to update the project

 meteor update 

Then make sure you update the meteorite

 sudo npm update -g meteorite 

And then run

 mrt migrate-app 

Read more:

+10
source

I am on osx and my mrt --version is 0.7.1, so I did

 macport selfupdate 

then a

 sudo port update npm 

and rethink to update the mrt executable (symbolic link to js file (I use zsh). Thanks Matyas.

Then i did

 sudo npm update -g meteorite mrt migrate-app 

again, but there was 'npm ERR! Try running this command again as root / Administrator', which was resolved with

 chown -R myUsername:staff .npm 

Regards Klaus

0
source

I solved it with

 sudo mrt migrate-app 

I do not know the possible consequences of this, use at your own peril and risk!

0
source

Source: https://habr.com/ru/post/1201176/


All Articles