nodemon - app crashed - waiting for file changes before starting nodemon - app crashed - waiting for file changes before starting express express

nodemon - app crashed - waiting for file changes before starting


Mongoose expects you to specify types using the built-in constructor functions, which are named with capital letters, e.g. String, Number, Boolean, etc.

var mongoose = require('mongoose');module.exports = mongoose.model('User', {   email : String ,   pwd : String});


define

module.exports = mongoose.model('User', new mongoose.Schema({    email : 'string' ,   pwd : 'string'   })});

There is no string variable in the code .


this message will be appeared always when there's any small mistake.I also faced this when module.exports type as module.export,just missed 's' only.