2013-11-09 157 views
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) 

任何想法?

現在我得到這個,當我更新項目與地鐵更新

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) 

我應該徹底清除流星?

+0

檢查您的系統上是否安裝了最新版本的'meteorite'。您可以嘗試刪除'home'中的'.meteorite'目錄並重新運行上述命令。 –

+0

嗨,我重新安裝了節點,流星和隕石。目前看起來不錯 – extensa5620

回答

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 

我ENV:

➜ 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 

什麼ENV(OS,流星,地鐵,節點)是您使用?

+0

哈!我運行了以下命令:mrt --version,它帶着隕石版本0.6.14回來,但不久之後發生了events.js:72 throw er; //未處理的「錯誤」事件我猜隕石有問題 – extensa5620