报错:node操作数据库 Mongoose is not a constructor已解决

报Mongoose is not a constructor,第一看下你的Schema写对没有

第二,

注意是mongodb://localhost/名

切记不要写成mongod,mongod是开机命令,mongo控制数据库

猜你喜欢

转载自blog.csdn.net/qq_38845858/article/details/85242182