连接数据库时出现错误:
{
MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
at Pool.<anonymous> (e:\VSCode\Nodejs\BlogProject\node_modules\mongodb\lib\core\topologies\server.js:438:11)
at Pool.emit (events.js:198:13)
at createConnection (e:\VSCode\Nodejs\BlogProject\node_modules\mongodb\lib\core\connection\pool.js:562:14)
at connect (e:\VSCode\Nodejs\BlogProject\node_modules\mongodb\lib\core\connection\pool.js:995:11)
at makeConnection (e:\VSCode\Nodejs\BlogProject\node_modules\mongodb\lib\core\connection\connect.js:32:7)
at callback (e: