Meteor can't install accounts-ui after update - meteor

After I update meteor to 0.8.0, I can't install accounts-ui
Is that my problem or others have the problem too? What should I do?
JubydeMacBook-Air:test juby$ mrt add accounts-ui
/usr/local/lib/node_modules/meteorite/lib/project.js:225
throw("Package named " + pkgName + " doesn't exist in your meteor in
^
Package named accounts-ui doesn't exist in your meteor installation, smart.json, or on atmosphere
Thank for your reading.

Make sure you have meteorite installed: npm install -g meteorite
If you have previously added the accounts-ui package remove it with mrt add accounts-ui then add it back with mrt add accounts-ui.
If you still can't add accounts-ui, make sure it was actually removed from your .meteor/packages file.
You can then launch the app with mrt from the app root directory.
Hope that helps.

Related

is there any way to install smart.json dependencies using meteor cli?

Since Meteor 0.9.0 it's posible to install dependencies from atmospherejs just using the meteor cli without install meteorite package manager.
However, is it posible to install all the dependencies declared in smart.json file without install meteorite (i.e. just using meteor cli)?
Thanks in advance.
smart.json is no longer used since Meteor 0.9. The dependencies of an app are stored in .meteor/packages, and are automatically installed when you run meteor run, and when the app restarts automatically after its files are changed. That is, the meteor tool will update the package catalog and install updated packages automatically.

Upgrading Meteor: Error when running mrt migrate-app

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
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/
I'm on osx and my mrt --version was 0.7.1 so I did a
macport selfupdate
then a
sudo port update npm
and a rehash to refresh the mrt executable (symlink to a js-file (I'm using zsh). Thank you to Matyas.
Then I did the
sudo npm update -g meteorite
mrt migrate-app
again but had a 'npm ERR! Please try running this command again as root/Administrator' which was solved with a
chown -R myUsername:staff .npm
regards
Claus
I solved it with
sudo mrt migrate-app
I don't know the possible consequences of this, use at your own risk!

How to add router package to Meteor js?

How to add Router Package to Meteor Js.I didn't have any idea about this so please help me.I am new to Meteor so is there any best reference for Meteor learn quickly.
With the new version of Meteor this is now:
$ meteor add iron:router
The meteor-router project has shifted to iron-router
You can use meteorite to install it. To meteorite:
npm install -g meteorite
And then you can add iron-router by:
mrt add iron-router
I would strongly recommend iron-router, which can be added with just meteor add iron-router from within your project root directory. However, if you install meteorite, it will give access to all the packages listed on Atmosphere, which include some other routing solutions.
Metor JS does not come with support for routing (i.e. having separate pages) out-of-the-box. But it is easy to add that using the router smart package.
$ mrt add router
But before adding router, you must need to install meteorite, You can install meteorite by using this command.
$ npm install -g meteorite
If your system requires root access to install global npm packages, make sure you use the -H flag:
$ sudo -H npm install -g meteorite
Install meteorite first. before installing the 'router' package you should install couple of other packages too. "HTML5-History-API" and "page-js-ie-support" packages. These are for the router to work in older versions of IE that doesn't support push state API.
mrt add HTML5-History-API
mrt add page-js-ie-support
mrt add router
Iron-router appears to be neither well-engineered (i.e. you can't prevent route changing without Monkey-patch) nor well-maintained at this moment. I recommend considering https://github.com/meteorhacks/flow-router/ as an alternative.

Can't install Iron-Router

i get this when i type mrt add iron-router in my meteor app
this is on a mac
smart.json changed.. installing from smart.json
smart.json changed.. installing from smart.json
✓ iron-router
tag: https://github.com/EventedMind/iron-router.git#v0.5.4
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:108
throw "There was a problem cloning repo: " + self.url;
^
There was a problem cloning repo: https://github.com/EventedMind/iron-router.git
what can i do to install iron-router ?
try
mrt uninstall --system
Then reinstall iron-router again.
If it still happen maybe the author forget to push tag. ( if newer version released)
If u want to use it right now. Clone it into your packages folder
Try:
meteor add iron-router
This is the newer way to install Meteor packages.
Note: Also make sure you run this command in the root directory of your Meteor project.

How to add package jade-handlebars

I am just a newbie in meteor and meteorite. I create a new project by mrt create my-app --branch devel. I have install meteorite by $ sudo -H npm install -g meteorite now when I add the package mrt add bootstrap the packages successfully added but on doing mrt add jade-handlers it wont show anything(either error or sucess) so how can I add the jade-handlerbars packages in my meteor project??
I am using node --version 0.10.11
meteorite --version 0.6.5
release 0.6.4
Thank You in Advance!!!
It may be that your smart.json is pointing at the tag on that package, rather than the git repo itself. (The last update to the package did not include a version bump, so the version of the package you get just by mrt adding it is outdated.)
Try putting this in your smart.json:
"jade-handlebars": {
"git": "https://github.com/SimonDegraeve/meteor-jade-handlebars.git"
}
Just a typo I guess?
mrt add jade-handlebars instead of mrt add jade-handlers
I also just figure it out that you can add the packages from the atmosphere by
mrt add <package> --repoPort=443

Resources