我刚刚将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
答案 0 :(得分:10)
首先,你必须更新项目
meteor update
然后确保更新陨石
sudo npm update -g meteorite
然后运行
mrt migrate-app
欲了解更多信息,请阅读:
答案 1 :(得分:0)
我在osx上,我的mrt --version是0.7.1,所以我做了
macport selfupdate
然后是
sudo port update npm
和刷新mrt可执行文件的rehash(符号链接到js文件(我使用zsh)。感谢Matyas。
然后我做了
sudo npm update -g meteorite
mrt migrate-app
再次但是有一个&n; npm ERR!请尝试以root / Administrator&#39;再次运行此命令。用
解决了chown -R myUsername:staff .npm
问候 克劳斯
答案 2 :(得分:0)
我用
解决了这个问题sudo mrt migrate-app
我不知道这可能造成的后果,使用风险自负!