本文介绍了Meteor 0.9模数部署不起作用 - “找不到模块'光纤'”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试部署新创建的Meteor(0.9)应用时,我总是在模数日志中收到此错误消息:

When trying to deploy a newly created Meteor (0.9) app I always get this error message in the Modulus logs:

module.js:340
throw err;
      ^
Error: Cannot find module 'fibers'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/mnt/data/2/programs/server/boot.js:1:75)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

我做的是:


  • 使用步骤

  • 执行我无法让它运行。

    but even after trying the solution of the question "Can't install, update or run Meteor after update" I can't get it running.

    任何人猜这里有什么问题?

    anyone a guess what's wrong here?

    推荐答案

    这个可能与流星束的新架构(将Meteor应用程序转换为常规Node.js应用程序的过程)有关。

    This may have something to do with the new architecture of the meteor bundle (the process which converts a Meteor app to a regular Node.js app).

    在Meteor< 0.9你必须在捆绑包的根目录下运行npm install才能安装npm模块,现在你必须首先在程序/服务器中cd,如README中所述:

    In Meteor < 0.9 you had to run npm install at the root of the bundle to get npm modules installed, now you have to cd in programs/server first, as stated in the README :

    This is a Meteor application bundle. It has only one external dependency:
    Node.js 0.10.29 or newer. To run the application:
    
      $ (cd programs/server && npm install)
      $ export MONGO_URL='mongodb://user:password@host:port/databasename'
      $ export ROOT_URL='http://example.com'
      $ export MAIL_URL='smtp://user:password@mailhost:port/'
      $ node main.js
    
    Use the PORT environment variable to set the port where the
    application will listen. The default is 80, but that will require
    root on most systems.
    
    Find out more about Meteor at meteor.com.
    

    Modulus开发了一个名为 demeteorizer 的工具,这是应该自动化将Meteor应用程序转换为Node.js应用程序的过程,并且他们可能还没有修改该工具来解释0.9更改。

    Modulus developed a tool called demeteorizer which is supposed to automate this process of converting a Meteor app to a Node.js app, and it's possible that they have not yet modified the tool to account for 0.9 changes.

    这篇关于Meteor 0.9模数部署不起作用 - “找不到模块'光纤'”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:30