1

I've been following the Book "Discover Meteor" and in the Iron-Router part, they say to install

mrt add iron-router

and it says

Stand back while Meteorite does its thing
Done installing smart packages
Ok, everything's ready. Here comes Meteor!
=> Running Meteor from a checkout -- overrides project version (0.7.0.1)
iron-router: Routing specifically designed for Meteor

But when i run meteor... it says:

=> Errors prevented startup:
While building the application:
error: no such package: 'iron-router'

I've removed and try to install.. and then update mrt and meteor, it says:

Installing Meteor
branch: https://github.com/meteor/meteor.git#master
Installing smart packages
✓ iron-router
tag: https://github.com/EventedMind/iron-router.git#v0.6.1
Done installing smart packages

But when i run it still gives the same error, saying that there is no package iron-router.

any ideas? thanks

Pedro Luz
  • 2,694
  • 4
  • 44
  • 54
  • 1
    well google came up with this http://www.paypertise.com/meteorjs/iron-router-tutorial, a bit of configuration to do after the install. – Tony Hopkinson Jan 07 '14 at 23:55
  • are you running your project with 'mrt' or 'meteor'? it should be mrt. – shambles Jan 08 '14 at 00:14
  • It also seems that you are running meteor from a git checkout. Is that the case? If you run meteor from a release (i.e., using the install.sh script), there shouldn't be any problems with the way you added iron-router. – Christian Fritz Jan 08 '14 at 00:20

3 Answers3

6

Make sure you execute mrt add iron-router under the root directory, not from within a subdirectory.

David
  • 540
  • 4
  • 14
waitingkuo
  • 89,478
  • 28
  • 112
  • 118
3

You can find the answer to this question here: meteor with mrt - iron:router: no such package

Installation of IronRouter for meteor 0.8.3 and older:

$ mrt add iron-router

Installation of IronRouter for meteor 0.9.0 and newer:

$ meteor add iron:router
Community
  • 1
  • 1
jap1968
  • 7,747
  • 1
  • 30
  • 37
0

thanks for the comments.

I forgot to edit the smart.json with the code in the url http://www.paypertise.com/meteorjs/iron-router-tutorial thanks for the tip Tony Hopkinson

Also coffeescript is not running very well in Meteor.

Pedro Luz
  • 2,694
  • 4
  • 44
  • 54