Meteor应用程序在启动时崩溃

时间:2012-11-09 18:05:24

标签: meteor

今天早上开发时,莫名其妙地开始崩溃。现在运行任何meteor命令都会返回:

module.js:340
    throw err;
          ^
Error: Cannot find module 'combined-stream'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/local/meteor/lib/node_modules/request/node_modules/form-data/lib/form_data.js:1:84)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)

原始崩溃日志是:

Your app is crashing. Here's the latest log.


/usr/local/meteor/lib/node_modules/fibers/fibers.js:13
    throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibe
          ^
Error: `/usr/local/meteor/lib/node_modules/fibers/bin/darwin-x64-v8-3.11/fibers.node` is missing. Try reinstalling `node-fibers`?
    at Object.<anonymous> (/usr/local/meteor/lib/node_modules/fibers/fibers.js:13:8)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/andrei/Dropbox/CodeRookMeteor/coderookmeteor/.meteor/local/build/server/server.js:3:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
Exited with code: 1
Your application is crashing. Waiting for file change.

2 个答案:

答案 0 :(得分:4)

我尝试重启MongoDB,但没有用。我也尝试将所有代码都拉下来。似乎问题出在Meteor上。重新安装它有效。

答案 1 :(得分:1)

private void putPageUnderAisleId(String aisleId) { url=(aisleId!=null)?AISLE_HTML_URL:ROOT_AISLE_HTML_URL; given() .spec(prepareApplicationJsonHeaders()) .header(HttpHeaders.AUTHORIZATION, verifiableToken(Roles.WRITE_MERCHANDISING)) .body(readResource(NAMED_PAGE_CONTENT_FILE, String.format("%s.html", TEST_PAGE.value()), AISLE_TEST_LOCATION)) .put(url, aisleId) .then() .statusCode(200) .body(not(isEmptyOrNullString())) .body(JSON_RESPONSE_MESSAGE, not(isEmptyOrNullString())); } private void putPageUnderRootAisleId() { putPageUnderAisleId(null); } 命令更改目录运行到项目meteor create project_name后,而不是直接运行cd project_name命令运行meteor,然后运行meteor npm install命令。

这是官方文档的片段 - Link

meteor