Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"error: no such package: 'roles'" #15

Closed
karollewandowski opened this issue Sep 30, 2013 · 4 comments
Closed

"error: no such package: 'roles'" #15

karollewandowski opened this issue Sep 30, 2013 · 4 comments

Comments

@karollewandowski
Copy link

Hi alanning!
I created new project, added only accounts-password package, and then added your roles package.

Console 1:

karol@karol-laptop ~/Workspaces/meteor $ meteor create forum
forum: created.

To run your new app:
   cd forum
   meteor
karol@karol-laptop ~/Workspaces/meteor $ cd forum/
karol@karol-laptop ~/Workspaces/meteor/forum $ meteor
[[[[[ ~/Workspaces/meteor/forum ]]]]]

=> Meteor server running on: http://localhost:3000/
=> Meteor server restarted (x5)
=> Errors prevented startup:

While building the application:
error: no such package: 'roles'

=> Your application has errors. Waiting for file change.

Console 2:

karol@karol-laptop ~/Workspaces/meteor/forum $ meteor add accounts-password
accounts-password: Password support for accounts.
karol@karol-laptop ~/Workspaces/meteor/forum $ mrt add roles
✓ roles
    tag: https://github.com/alanning/meteor-roles.git#v1.0.6

Done installing smart packages

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

roles: Role-based authorization

I got "error: no such package: 'roles'" in Console 1 after adding roles package.

I googled this question on stackoverflow.com:
http://stackoverflow.com/questions/18264145/meteor-error-no-such-package-accounts-urls

I downgraded Meteor to 0.6.4.1 and application works correctly, so I conclude it is the new Meteor's package system issue. I will try to create fix based on https://github.com/meteor/meteor/blob/devel/History.md#v065 and check if it works (it can take some time, because I've just started learning Meteor).

Please let me know if I am wrong with conclusion.

@alanning
Copy link
Contributor

Hi @Karol86,

Thanks for this. You could have reopened Issue #14 but opening a new issue is fine too. :-)

Edit: Whoops, you're right! Not related to #14 !

@alanning
Copy link
Contributor

Hi @Karol86,

OK, I retested using Meteor 0.6.5.1 and it looks like everything is ok so that's good.

I think I spotted the issue though; you are running the app with the 'meteor' command instead of the 'mrt' command.

Since meteor-roles is a Meteorite package, the normal "meteor" command doesn't know where to look to get it so that's why you're seeing the, "error: no such package: 'roles'" message in Console 1. When using Meteorite smart packages you have to use the 'mrt' command instead (which is basically a wrapper around "meteor" which just knows where to find the community contributed packages).

I'll update the readme to be clearer as I'm sure others will have the same issue, especially if meteor-roles is their first exposure to Meteorite.

So please try running your app using "mrt" and let me know if that works.

@karollewandowski
Copy link
Author

Hi @alanning!
Running app using mrt command solved this issue. I've checked Atmosphere doc and there is clearly stated that application have to be started by mrt command. My fault that I didn't RTFM.
Thanks!

@alanning
Copy link
Contributor

Hi @Karol86,

Glad that fixed it. I updated the readme to hopefully be clearer: https://github.com/alanning/meteor-roles#usage

RTM'ing is important but I appreciate you opening the issue. I want to make this package as accessible to everyone as possible and it is certainly not obvious to run 'mrt' if this is your first exposure to Meteorite.

If you see any other areas where the documentation could improve, please let me know. Or better yet, send me a pull request with a suggested change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants