我正在开发一个流星应用程序,它执行得很好( 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 (not-v5.1.0)无关(meteor不依赖于外部nodejs安装)
这是流星上已知的臭虫吗?
这是故意的流星行为吗?对于如何避免这种情况,有什么建议吗?
发布于 2015-12-08 11:13:30
当您运行其中之一时,它正在更新包,正如您的第一个代码示例“更新依赖项”中所看到的那样。
Meteor使用您的.meteor文件夹在计算机中全局存储包。我想说,您的光纤包在它的版本或您的操作系统版本可能有问题。
发布于 2015-12-07 23:16:12
如果您运行一个具有默认设置的Meteor应用程序,它将运行在端口3000上。在同一个端口上运行多个不同的Meteor应用程序可能会导致上述问题。要使应用程序在不同端口上运行,请尝试使用--port参数,如
$ meteor run --port 4000https://stackoverflow.com/questions/34144866
复制相似问题