Skip to content

Instantly share code, notes, and snippets.

@cableray
Created October 18, 2012 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cableray/3914787 to your computer and use it in GitHub Desktop.
Save cableray/3914787 to your computer and use it in GitHub Desktop.
Meteor error
Error: A method named '/users/insert' is already defined
at app/packages/livedata/livedata_server.js:843:15
at Function._.each._.forEach (app/packages/underscore/underscore.js:84:24)
at _.extend.methods (app/packages/livedata/livedata_server.js:841:7)
at Meteor.Collection._defineMutationMethods (app/packages/mongo-livedata/collection.js:379:19)
at new Meteor.Collection (app/packages/mongo-livedata/collection.js:104:8)
at app/server/users.coffee.js:3:9
at /Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/server.js:107:21
at Array.forEach (native)
at Function._.each._.forEach (/Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/underscore.js:76:11)
at run (/Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/server.js:93:7)
app/packages/livedata/livedata_server.js:843
throw new Error("A method named '" + name + "' is already defined");
^
Exited with code: 1
app/packages/livedata/livedata_server.js:843
throw new Error("A method named '" + name + "' is already defined");
^
Error: A method named '/users/insert' is already defined
at app/packages/livedata/livedata_server.js:843:15
at Function._.each._.forEach (app/packages/underscore/underscore.js:84:24)
at _.extend.methods (app/packages/livedata/livedata_server.js:841:7)
at Meteor.Collection._defineMutationMethods (app/packages/mongo-livedata/collection.js:379:19)
at new Meteor.Collection (app/packages/mongo-livedata/collection.js:104:8)
at app/server/users.coffee.js:3:9
at /Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/server.js:107:21
at Array.forEach (native)
at Function._.each._.forEach (/Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/underscore.js:76:11)
at run (/Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/server.js:93:7)
Exited with code: 1
app/packages/livedata/livedata_server.js:843
throw new Error("A method named '" + name + "' is already defined");
^
Error: A method named '/users/insert' is already defined
at app/packages/livedata/livedata_server.js:843:15
at Function._.each._.forEach (app/packages/underscore/underscore.js:84:24)
at _.extend.methods (app/packages/livedata/livedata_server.js:841:7)
at Meteor.Collection._defineMutationMethods (app/packages/mongo-livedata/collection.js:379:19)
at new Meteor.Collection (app/packages/mongo-livedata/collection.js:104:8)
at app/server/users.coffee.js:3:9
at /Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/server.js:107:21
at Array.forEach (native)
at Function._.each._.forEach (/Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/underscore.js:76:11)
at run (/Users/cableray/Dev/meteor/fae_chess/.meteor/local/build/server/server.js:93:7)
Exited with code: 1
Your application is crashing. Waiting for file change.
@joeljfischer
Copy link

Any idea what's causing this? I have something similar.

@yeoldeprogrammre
Copy link

I tried to meteor install accounts-password, accounts-facebook, accounts-twitter, and accounts-google and am getting this on Mac OS X 10.6.8.

@adamwong246
Copy link

+1

@jsivakumaran
Copy link

Similar error but I'm getting code 8.

W20150413-16:15:31.019(-7)? (STDERR)
W20150413-16:15:31.019(-7)? (STDERR) /Users/Guest/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150413-16:15:31.019(-7)? (STDERR) throw(ex);
W20150413-16:15:31.019(-7)? (STDERR) ^
W20150413-16:15:31.079(-7)? (STDERR) Error: A method named '/users/insert' is already defined
W20150413-16:15:31.079(-7)? (STDERR) at packages/ddp/livedata_server.js:1461:1
W20150413-16:15:31.079(-7)? (STDERR) at Function..each..forEach (packages/underscore/underscore.js:113:1)
W20150413-16:15:31.079(-7)? (STDERR) at [object Object]..extend.methods (packages/ddp/livedata_server.js:1459:1)
W20150413-16:15:31.080(-7)? (STDERR) at [object Object].Mongo.Collection.defineMutationMethods (packages/mongo/collection.js:904:1)
W20150413-16:15:31.080(-7)? (STDERR) at new Mongo.Collection (packages/mongo/collection.js:209:1)
W20150413-16:15:31.080(-7)? (STDERR) at app/leaderboard.js:2:16
W20150413-16:15:31.080(-7)? (STDERR) at app/leaderboard.js:57:3
W20150413-16:15:31.080(-7)? (STDERR) at /Users/Guest/Desktop/leaderboard/.meteor/local/build/programs/server/boot.js:222:10
W20150413-16:15:31.080(-7)? (STDERR) at Array.forEach (native)
W20150413-16:15:31.080(-7)? (STDERR) at Function.
.each.
.forEach (/Users/Guest/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment