我需要使用第三方包向meteor项目添加mrt包。在这个例子中,我安装了npm和meteorite,但是在这个时候向meteor项目添加包会得到以下错误:
mrt add router
错误:✓ router
tag: https://github.com/tmeasday/meteor-router.git#v0.6.1
ERROR: 128 Command failed: fatal: Not a git repository (or any of the parent directories): .git
STDOUT:
STDERR: fatal: Not a git repository (or any of the parent directories): .git
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:181
self.checkoutType + ": " + (self.commit || self.head);
^
There was a problem checking out tag: v0.6.1
我是新来的流星。我不知道这个错误是怎么回事。
router
是一个已弃用的包。
用iron-router
代替:
mrt add iron-router