Following is my user schema in user.js model -
user
user.js
var userSchema = new mongoose.Schema({ local: { name: { type: String },
This is because there is already a collection with the same name with configuration..Just remove the collection from your mongodb through mongo shell and try again.
db.collectionName.remove()
now run your application it should work