mongooseconfig-example 目前测试有问题,不推荐使用 mongooseconfig 是mongoose连接数据库的便利模块 https://github.com/i5ting/mongooseconfig 测试本地mongooseconfig是否生成config npm test 保证mongooseconfig和mongooseconfig-example位于同一目录即可 测试中断express后mongoose连接关闭 npm start 然后ctrl + c中断