Internal/crypto/keys.js TypeError [err_invalid_arg_type]

Hi, I keep getting this error(below) whenever i run “knex migrate:latest”. I’ve tested it with different databases(postgresql) too, it gives me the same results. Any idea on what i’m doing wrong?

$ knex migrate:latest
Using environment: development
internal/crypto/keys.js:305
throw new ERR_INVALID_ARG_TYPE(
^

TypeError [ERR_INVALID_ARG_TYPE]: The “key” argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received null
at prepareSecretKey (internal/crypto/keys.js:305:13)
at new Hmac (internal/crypto/hash.js:113:9)
at Object.createHmac (crypto.js:143:10)
at createHMAC (C:\Users\EEZHI\database2\node_modules\pg\lib\sasl.js:133:17)
at Hi (C:\Users\EEZHI\database2\node_modules\pg\lib\sasl.js:137:13)
at Object.continueSession (C:\Users\EEZHI\database2\node_modules\pg\lib\sasl.js:32:24)
at Client._handleAuthSASLContinue (C:\Users\EEZHI\database2\node_modules\pg\lib\client.js:248:10)
at Connection.emit (events.js:315:20)
at C:\Users\EEZHI\database2\node_modules\pg\lib\connection.js:109:12
at Parser.parse (C:\Users\EEZHI\database2\node_modules\pg-protocol\dist\parser.js:40:17) {
code: ‘ERR_INVALID_ARG_TYPE’
}