添加ui-accounts后出现Meteor Angular2 Tutorial错误

时间:2016-08-01 11:15:20

标签: javascript node.js meteor angular meteor-accounts

在Meteor Angular 2教程(社交应用程序)中的section 8(用户帐户)后,浏览器上没有显示任何内容,在F12中我收到此错误:

  

install.js:85未捕获错误:找不到模块'meteor / accounts-base'require @ install.js:85meteorInstall.node_modules.angular2-meteor-accounts-ui.build.login-buttons.js @ login-buttons .js:13fileEvaluate @ install.js:153require @ install.js:82meteorInstall.node_modules.angular2-meteor-accounts-ui.build.index.js @ index.js:5fileEvaluate @ install.js:153require @ install.js:82meteorInstall .client.imports.parties-list.parties-list.js @ parties-list.ts:6fileEvaluate @ install.js:153require @ install.js:82meteorInstall.client.imports.parties-list.parties-list.ts @ parties -list.ts:1fileEvaluate @ install.js:153require @ install.js:82meteorInstall.client.app.js @ app.ts:6fileEvaluate @ install.js:153require@install.js:82(nanonymous function)@ parties.ts :22

1 个答案:

答案 0 :(得分:2)

引用的meteor/accounts-base模块是accounts-password包的直接依赖关系。 Socially - A Meteor-Angular Tutorial App教程的第8步要求安装accounts-password包,然后安装accounts-base包。确保您运行以下内容:

meteor add accounts-password

要确保已安装,请在.meteor/versions文件中查找匹配的accounts-base@X.X.X行。