Where do I begin to troubleshoot this? Here is the error


First I could not: add accounts-password.

I solved that problem by running: meteor npm install --global --production windows-build-tools
and then installing: add accounts-password.

Now when I try to: meteor run - I get this new error:

cmd.exe Error: There is already a collection named "users"
W20160731-22:08:02.408(-7)? (STDERR) at new Mongo.Collection (packages/mongo/collection.js:244:15)
W20160731-22:08:02.412(-7)? (STDERR) at meteorInstall.leaderboard.js (leaderboard.js:79:16)

In my leaderboard.js file I removed: UserAccounts = new Mongo.Collection(‘users’);
and the cmd.exe error went away and meteor automatically started running.

I need: UserAccounts = new Mongo.Collection(‘users’); to be in the code for the app to work.

Thanks for any help.


Adding accounts-password creates a mongo collection called users so you can’t define your own with the same name. If you want to have this collection assigned to the UserAccounts variable you could try:

UserAccounts = Meteor.users

If you’re using ES6 modules you may need to assign to global.UserAccounts.


Thanks. That made it work.