今天,我开始了一个与Twitch.TV聊天服务器一起使用的新项目(IRC Bot等)。
我想使用我在Atmosphere上找到的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.
似乎问题是在twitch_server.js中调用Accounts.oauth.registerService,但我真的不知道如何解决它。
我似乎也无法在他们的API文档中找到任何关于这些oauth的东西,或者我在寻找错误的地方,或者我错过了一个我应该包含的软件包?
我添加到我的项目中的所有内容都是account-twitch,accounts-ui和coffeescript,截至目前为止。我还没有编写任何代码,只是试图启动Meteor。
任何帮助都会很棒。我非常感谢每个人的时间。