繁体   English   中英

流星帐户密码使我的应用崩溃

[英]Meteor accounts-password makes my app crash

我创建一个新应用

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

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

您必须运行以下命令:

meteor npm install

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

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

重新安装流星,它的工作。 一天没有答案(尝试了我能想象的一切(降级流星,降级包,以不同顺序添加包等))和头痛。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM