Boa noite!! Camila tudo joia e contigo?
Ainda estou enfrentando o erro nada de novo no back kkk me estorou esse erro
$ npm run typeorm migration:generate src/db/migrations/cria-tabelas
loja@0.0.1 typeorm
typeorm-ts-node-esm -d src/db/data-source-cli.ts migration:generate src/db/migrations/cria-tabelas
Error during migration generation:
error: password authentication failed for user "root"
at Parser.parseErrorMessage (D:\Projetos\Alura\Backend\NodeJS\API-Restful-CRUD-Loja\Loja\node_modules\pg-protocol\src\parser.ts:369:69)
at Parser.handlePacket (D:\Projetos\Alura\Backend\NodeJS\API-Restful-CRUD-Loja\Loja\node_modules\pg-protocol\src\parser.ts:188:21)
at Parser.parse (D:\Projetos\Alura\Backend\NodeJS\API-Restful-CRUD-Loja\Loja\node_modules\pg-protocol\src\parser.ts:103:30)
at Socket. (D:\Projetos\Alura\Backend\NodeJS\API-Restful-CRUD-Loja\Loja\node_modules\pg-protocol\src\index.ts:7:48)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 100,
severity: 'FATAL',
code: '28P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '329',
routine: 'auth_failed'
}