为什么运行Meteor应用程序会破坏运行其他Meter应用程序的能力?

时间:2015-12-07 22:53:34

标签: meteor build crash

我正在开发一个执行得很好的流星应用程序(METEOR@1.2.1)...但是我已经目睹了几个剧集,在执行了一个不同的流星应用程序之后发生了如下所示的失败,之后当我尝试运行我自己的应用程序突然开始失败:

其他应用:

git clone https://github.com/RocketChat/Rocket.Chat
cd Rocket.Chat


meteor
[[[[[ ~/other_src/Rocket.Chat ]]]]]           

=> Started proxy.                             
=> Started MongoDB.                           
rocketchat:file: updating npm dependencies -- mkdirp, gridfs-stream, gm...
rocketchat:assets: updating npm dependencies -- image-size...
rocketchat:ldap: updating npm dependencies -- ldapjs...
rocketchat:theme: updating npm dependencies -- less, less-plugin-autoprefix...
rocketchat:tutum: updating npm dependencies -- redis...
rocketchat:ui-sidenav: updating npm dependencies -- less, less-plugin-autoprefix...
steffo:meteor-accounts-saml: updating npm dependencies -- xml2js, xml-crypto, xmldom, connect, xmlbuilder, querystring, xml-encryption...
W20151207-17:15:31.344(-5)? (STDERR)          
W20151207-17:15:31.345(-5)? (STDERR) module.js:340
W20151207-17:15:31.346(-5)? (STDERR)     throw err;
W20151207-17:15:31.346(-5)? (STDERR)           ^
W20151207-17:15:31.346(-5)? (STDERR) Error: Cannot find module 'fibers'
W20151207-17:15:31.346(-5)? (STDERR)     at Function.Module._resolveFilename (module.js:338:15)
W20151207-17:15:31.348(-5)? (STDERR)     at Function.Module._load (module.js:280:25)
W20151207-17:15:31.348(-5)? (STDERR)     at Module.require (module.js:364:17)
W20151207-17:15:31.348(-5)? (STDERR)     at require (module.js:380:17)
W20151207-17:15:31.349(-5)? (STDERR)     at Object.<anonymous> (/home/scott/other_src/Rocket.Chat/.meteor/local/build/programs/server/boot.js:1:75)
W20151207-17:15:31.349(-5)? (STDERR)     at Module._compile (module.js:456:26)
W20151207-17:15:31.349(-5)? (STDERR)     at Object.Module._extensions..js (module.js:474:10)
W20151207-17:15:31.349(-5)? (STDERR)     at Module.load (module.js:356:32)
W20151207-17:15:31.349(-5)? (STDERR)     at Function.Module._load (module.js:312:12)
W20151207-17:15:31.349(-5)? (STDERR)     at Module.require (module.js:364:17)

以下是我的应用...这些错误仅在运行应用

后才开始发生
meteor 
[[[[[ ~/other_src/github/myapp ]]]]]      

=> Started proxy.                             
=> Started MongoDB.                           
W20151207-17:37:03.985(-5)? (STDERR)          
W20151207-17:37:03.987(-5)? (STDERR) module.js:340
W20151207-17:37:03.987(-5)? (STDERR)     throw err;
W20151207-17:37:03.987(-5)? (STDERR)           ^
W20151207-17:37:03.987(-5)? (STDERR) Error: Cannot find module 'fibers'
W20151207-17:37:03.987(-5)? (STDERR)     at Function.Module._resolveFilename (module.js:338:15)
W20151207-17:37:03.987(-5)? (STDERR)     at Function.Module._load (module.js:280:25)
W20151207-17:37:03.988(-5)? (STDERR)     at Module.require (module.js:364:17)
W20151207-17:37:03.988(-5)? (STDERR)     at require (module.js:380:17)
W20151207-17:37:03.988(-5)? (STDERR)     at Object.<anonymous> (/home/scott/other_src/github/myapp/.meteor/local/build/programs/server/boot.js:1:75)
W20151207-17:37:03.988(-5)? (STDERR)     at Module._compile (module.js:456:26)
W20151207-17:37:03.988(-5)? (STDERR)     at Object.Module._extensions..js (module.js:474:10)
W20151207-17:37:03.988(-5)? (STDERR)     at Module.load (module.js:356:32)
W20151207-17:37:03.989(-5)? (STDERR)     at Function.Module._load (module.js:312:12)
W20151207-17:37:03.989(-5)? (STDERR)     at Module.require (module.js:364:17)

我知道如果删除〜/ .meteor目录并重新安装meteor

curl https://install.meteor.com/ | sh

我自己以前工作的应用程序突然恢复正常工作。

ubuntu 15.10

我没有使用特殊权限

我得到的问题与我是否安装了nodejs(node-v5.1.0)无关(meteor不依赖于外部nodejs安装)

这是流星中的一个已知错误吗? 这种流星行为是故意的吗? 关于如何避免这种情况的任何建议?

2 个答案:

答案 0 :(得分:2)

当你运行其中一个时,它正在更新软件包,这可以在你的第一个代码示例&#34;更新依赖关系&#34;中看到。

Meteor使用.meteor文件夹在您的计算机中全局存储包。我说在你的版本或操作系统版本中你的光纤包可能存在问题。

答案 1 :(得分:0)

如果您使用默认设置运行Meteor应用程序,它将在端口3000上运行。在同一端口上运行多个不同的Meteor应用程序可能会导致上述问题。要使应用程序在不同的端口上运行,请尝试使用--port参数,例如

$ meteor run --port 4000
相关问题