我一直在关注书“发现流星”,并在铁路由器的一部分,他们说安装铁路由器不安装
mrt add iron-router
和它说
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
但当我运行的流星......它说:
=> Errors prevented startup:
While building the application:
error: no such package: 'iron-router'
我已经删除,并尝试安装..然后更新地铁和流星,它说:
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
但是,当我运行它仍然给出了同样的错误,说没有包铁路由器。
有什么想法?谢谢
以及谷歌想出了这个http://www.paypertise.com/meteorjs/iron-router-tutorial,安装后需要进行一些配置。 –
你是用'mrt'还是'meteor'来运行你的项目?它应该是mrt。 – shambles
这似乎也是你从git checkout运行流星。是这样吗?如果你从一个版本运行流星(即使用install.sh脚本),那么你添加铁路路由器的方式应该没有任何问题。 –