0

我正在关注 Meteor 书籍和路由教程。卡在这里。有任何想法吗?

mars:meteor_projs mbp$ mrt create test
test: created.

To run your new app:
   cd test
   meteor
mars:meteor_projs mbp$ cd test
mars:test mbp$ mrt add router
✓ router
    tag: https://github.com/tmeasday/meteor-router.git#v0.5.4.1

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

有任何想法吗?

现在,当我使用 mrt update 更新项目时,我得到了这个

mars:microscope2 stan$ mrt update
✓ router
    tag: https://github.com/tmeasday/meteor-router.git#v0.5.4.1

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

我应该完全移除流星吗?

4

1 回答 1

1

我试图重现你的问题......但一切都在我身边:

➜  meteor-router-t-e  cd test
➜  test  mrt add router
✓ router
    tag: https://github.com/tmeasday/meteor-router.git#v0.5.4.1
✓ page-js-ie-support
    tag: https://github.com/tmeasday/meteor-page-js-ie-support.git#v1.3.5
✓ HTML5-History-API
    tag: https://github.com/tmeasday/meteor-HTML5-History-API.git#v4.0.0

Done installing smart packages

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

router: updating npm dependencies -- connect...
router: A reactive router built on page.js
➜  test  

我的环境:

➜  meteor-router-t-e  lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:    13.04
Codename:   raring


➜  meteor-router-t-e  mrt --version
Meteorite version 0.6.15
Release 0.6.6.3
➜  meteor-router-t-e  node --version
v0.10.21

您使用的是什么环境(操作系统、流星、mrt、节点)?

于 2013-11-09T22:12:42.950 回答