2017-07-19 110 views
0

我在創建一個新的應用程序流星帳戶密碼讓我的應用程序崩潰

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很多次,但現在我不知道發生了什麼

+0

你以前是否運行'meteor npm i'? –

+0

是的,我確實運行過這個命令 –

+0

在你的npm包裏有'bcrypt'嗎? –

回答

0

重新安裝的流星,它的工作。 經過一天沒有答案(嘗試了我能想象到的所有東西(降級流星,降級包,按不同順序添加軟件包等等))和頭盔。

2

您必須運行命令:

meteor npm install

啓動之前安裝NPM包你應用程序。

看流星指南:https://guide.meteor.com/#quickstart

+0

我做了那件事,沒有任何東西,仍然崩潰 –