meteorjs – 帐户问题与抽搐包&OAuth2

今天,我开始了一个与Twitch.TV的聊天服务器一起使用的新项目(IRC Bot等)。

我想使用我在Atmosphere上find的accounts-twitch软件包,并且由于在accounts-oauth2-helper上不再使用依赖关系,必须手动安装它(编辑package.js文件)。

得到它正确安装后,我的应用程序崩溃现在启动。 它死前抛出以下错误,我不知道如何解决它:

[[[[[ ~/projects/wasdbot ]]]]] => Started MongoDB. => Starting your app... W20140605-15:22:42.283(-4)? (STDERR) W20140605-15:22:42.350(-4)? (STDERR) /home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/fibers/future.js:173 W20140605-15:22:42.350(-4)? (STDERR) throw(ex); W20140605-15:22:42.350(-4)? (STDERR) ^ W20140605-15:22:42.351(-4)? (STDERR) TypeError: Cannot call method 'registerService' of undefined W20140605-15:22:42.351(-4)? (STDERR) at Package (packages/accounts-twitch/twitch_server.js:2) W20140605-15:22:42.351(-4)? (STDERR) at Package (packages/accounts-twitch/twitch_server.js:82) W20140605-15:22:42.351(-4)? (STDERR) at packages/accounts-twitch.js:123:4 W20140605-15:22:42.351(-4)? (STDERR) at packages/accounts-twitch.js:130:3 W20140605-15:22:42.352(-4)? (STDERR) at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:155:10 W20140605-15:22:42.352(-4)? (STDERR) at Array.forEach (native) W20140605-15:22:42.352(-4)? (STDERR) at Function._.each._.forEach (/home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11) W20140605-15:22:42.352(-4)? (STDERR) at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:82:5 => Exited with code: 8 W20140605-15:22:43.456(-4)? (STDERR) W20140605-15:22:43.457(-4)? (STDERR) /home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/fibers/future.js:173 W20140605-15:22:43.457(-4)? (STDERR) throw(ex); W20140605-15:22:43.458(-4)? (STDERR) ^ W20140605-15:22:43.463(-4)? (STDERR) TypeError: Cannot call method 'registerService' of undefined W20140605-15:22:43.463(-4)? (STDERR) at Package (packages/accounts-twitch/twitch_server.js:2) W20140605-15:22:43.464(-4)? (STDERR) at Package (packages/accounts-twitch/twitch_server.js:82) W20140605-15:22:43.464(-4)? (STDERR) at packages/accounts-twitch.js:123:4 W20140605-15:22:43.464(-4)? (STDERR) at packages/accounts-twitch.js:130:3 W20140605-15:22:43.465(-4)? (STDERR) at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:155:10 W20140605-15:22:43.465(-4)? (STDERR) at Array.forEach (native) W20140605-15:22:43.465(-4)? (STDERR) at Function._.each._.forEach (/home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11) W20140605-15:22:43.466(-4)? (STDERR) at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:82:5 => Exited with code: 8 W20140605-15:22:44.622(-4)? (STDERR) W20140605-15:22:44.624(-4)? (STDERR) /home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/fibers/future.js:173 W20140605-15:22:44.625(-4)? (STDERR) throw(ex); W20140605-15:22:44.625(-4)? (STDERR) ^ W20140605-15:22:44.628(-4)? (STDERR) TypeError: Cannot call method 'registerService' of undefined W20140605-15:22:44.629(-4)? (STDERR) at Package (packages/accounts-twitch/twitch_server.js:2) W20140605-15:22:44.629(-4)? (STDERR) at Package (packages/accounts-twitch/twitch_server.js:82) W20140605-15:22:44.630(-4)? (STDERR) at packages/accounts-twitch.js:123:4 W20140605-15:22:44.630(-4)? (STDERR) at packages/accounts-twitch.js:130:3 W20140605-15:22:44.630(-4)? (STDERR) at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:155:10 W20140605-15:22:44.631(-4)? (STDERR) at Array.forEach (native) W20140605-15:22:44.631(-4)? (STDERR) at Function._.each._.forEach (/home/misutowolf/.meteor/tools/5bf1690853/lib/node_modules/underscore/underscore.js:79:11) W20140605-15:22:44.631(-4)? (STDERR) at /home/misutowolf/projects/wasdbot/.meteor/local/build/programs/server/boot.js:82:5 => Exited with code: 8 => Your application is crashing. Waiting for file change. 

似乎问题是这个调用Accounts.oauth.registerService,在twitch_server.js,但我真的不知道如何去解决它。

我似乎也无法在任何地方find他们的API文档中的这个oauth东西,或者我正在寻找错误的地方,或者我错过了一个我应该包含的包?

所有我添加到我的项目是截至目前帐户twitch,accounts-ui和coffeescript。 我还没有写任何代码,只是试图启动meteor。

任何帮助将是惊人的。 我非常感谢大家的时间。

Interesting Posts