找不到模块‘光纤’

找不到模块‘光纤’

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

问题描述

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

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)

我所做的是:

  • 使用这些步骤安装meteor
  • 执行这些模数设置步骤
  • installing meteor with these steps
  • executing these steps for modulus setup

但即使在尝试解决问题后不能更新后安装、更新或运行 Meteor" 我无法让它运行.

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 Bundle 的新架构(将 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).

>

在流星

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 Modulus 部署不起作用 - “找不到模块‘光纤’"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:30