I have a mongo error

I have this error:

(node:15032) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)

C:\Users\Computer\Pigdom-bot\node_modules\mongoose\lib\connection.js:844
  const serverSelectionError = new ServerSelectionError();
                               ^
MongooseServerSelectionError: connect ECONNREFUSED ::1:27017
    at NativeConnection.Connection.openUri (C:\Users\Computer\Pigdom-bot\node_modules\mongoose\lib\connection.js:844:32)
    at C:\Users\Computer\Pigdom-bot\node_modules\mongoose\lib\index.js:345:10
    at C:\Users\Computer\Pigdom-bot\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:5
    at new Promise (<anonymous>)
    at promiseOrCallback (C:\Users\Computer\Pigdom-bot\node_modules\mongoose\lib\helpers\promiseOrCallback.js:30:10)
    at Mongoose._promiseOrCallback (C:\Users\Computer\Pigdom-bot\node_modules\mongoose\lib\index.js:1135:10)
    at Mongoose.connect (C:\Users\Computer\Pigdom-bot\node_modules\mongoose\lib\index.js:344:20)
    at C:\Users\Computer\Pigdom-bot\src\index.ts:14:36
    at Generator.next (<anonymous>)
    at C:\Users\Computer\Pigdom-bot\src\index.ts:27:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\Computer\Pigdom-bot\src\index.ts:23:12)
    at C:\Users\Computer\Pigdom-bot\src\index.ts:13:13
    at Object.<anonymous> (C:\Users\Computer\Pigdom-bot\src\index.ts:26:3)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Module.m._compile (C:\Users\Computer\Pigdom-bot\node_modules\ts-node\src\index.ts:1056:23)

Means mongod is not running at the given host and port.