Javascript 从Node.JS迁移到Postgres时询问Windows帐户密码-

Javascript 从Node.JS迁移到Postgres时询问Windows帐户密码-,javascript,node.js,postgresql,Javascript,Node.js,Postgresql,当我向Postgres运行命令“npm run migrate up”时,它不起作用,给我下一个错误: (node:7992) UnhandledPromiseRejectionWarning: error: password authentication failed for user "XY"** at Parser.parseErrorMessage (...\node_modules\pg-protocol\dist\parser.js:278:15)

当我向Postgres运行命令“npm run migrate up”时,它不起作用,给我下一个错误:

(node:7992) UnhandledPromiseRejectionWarning: error: password authentication failed for user "XY"**
    at Parser.parseErrorMessage (...\node_modules\pg-protocol\dist\parser.js:278:15)
    at Parser.handlePacket (...\node_modules\pg-protocol\dist\parser.js:126:29)
    at Parser.parse (...\node_modules\pg-protocol\dist\parser.js:39:38)
    at Socket.<anonymous> (...\node_modules\pg-protocol\dist\index.js:10:42)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7992) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use 
the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7992) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 
(节点:7992)未处理的PromisejectionWarning:错误:用户“XY”的密码身份验证失败**
在Parser.parseErrorMessage(…\node\u modules\pg protocol\dist\Parser.js:278:15)
位于Parser.handlePacket(…\node\u modules\pg protocol\dist\Parser.js:126:29)
在Parser.parse(…\node\u modules\pg protocol\dist\Parser.js:39:38)
在插座上。(…\node\u modules\pg protocol\dist\index.js:10:42)
在Socket.emit(events.js:315:20)
在addChunk(internal/streams/readable.js:309:12)
在readableAddChunk(internal/streams/readable.js:284:9)
在Socket.Readable.push(internal/streams/Readable.js:223:10)
在TCP.onStreamRead(内部/stream_base_commons.js:188:23)
(使用`node--trace warnings…`显示警告的创建位置)
(节点:7992)未处理的PromisejectionWarning:未处理的承诺拒绝。此错误源于在没有catch块的异步函数中抛出,或者拒绝未使用.catch()处理的承诺。要在未处理的承诺拒绝时终止节点进程,请使用
CLI标志“---unhandled rejections=strict”(请参阅https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (拒绝id:1)
(节点:7992)[DEP0018]弃用警告:未处理的承诺拒绝已弃用。将来,未处理的承诺拒绝将使用非零退出代码终止Node.js进程。
迁移文件正确存在,但我不知道如何解决此问题