Meteor帐户密码使我的应用程序崩溃

时间:2017-07-19 05:41:24

标签: javascript node.js meteor meteor-accounts

我创建了一个新应用

meteor create myapp

然后

cd my app
meteor add accounts-password

myapp是空的,没有任何东西,只有默认的东西,当我运行它时会发生

W20170719-00:31:41.432(-5)? (STDERR) /home/myuser/.meteor/packages/meteor-tool/.1.5.1.vcnq6u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20170719-00:31:41.433(-5)? (STDERR)                        throw(ex);
W20170719-00:31:41.434(-5)? (STDERR)                        ^
W20170719-00:31:41.436(-5)? (STDERR) 
W20170719-00:31:41.436(-5)? (STDERR) TypeError: Cannot read property 'hash' of undefined
W20170719-00:31:41.438(-5)? (STDERR)     at meteorInstall.node_modules.meteor.accounts-password.password_server.js (packages/accounts-password/password_server.js:4:35)
W20170719-00:31:41.439(-5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170719-00:31:41.439(-5)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170719-00:31:41.440(-5)? (STDERR)     at /myapppath/.meteor/local/build/programs/server/packages/accounts-password.js:1227:1
W20170719-00:31:41.441(-5)? (STDERR)     at /myapppath/.meteor/local/build/programs/server/packages/accounts-password.js:1233:3
W20170719-00:31:41.442(-5)? (STDERR)     at /myapppath/.meteor/local/build/programs/server/boot.js:338:34
W20170719-00:31:41.443(-5)? (STDERR)     at Array.forEach (native)
W20170719-00:31:41.444(-5)? (STDERR)     at Function._.each._.forEach (/home/myuser/.meteor/packages/meteor-tool/.1.5.1.vcnq6u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170719-00:31:41.445(-5)? (STDERR)     at /myapppath/.meteor/local/build/programs/server/boot.js:158:5
W20170719-00:31:41.447(-5)? (STDERR)     at /myapppath/.meteor/local/build/programs/server/boot.js:387:5

任何想法? 我在其他应用中多次安装了accounts.password,但现在我不知道发生了什么

2 个答案:

答案 0 :(得分:2)

您必须运行命令:

meteor npm install

在启动应用程序之前安装npm软件包。

请参阅流星指南:https://guide.meteor.com/#quickstart

答案 1 :(得分:0)

重新安装流星并且工作正常。 经过一天没有答案(尝试了我能想象到的一切(降级流星,降级包裹,以不同的顺序添加包裹等等))和头盔。