quando mando fazer o npm start, ele diz o seguinte:
PS D:\ALURA\REST COM NODEJS\PROJETOS> npm start
projeto-nodejs-rest@1.0.0 start nodemon index.js
[nodemon] 2.0.15
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node index.js
consign v0.1.6 Initialized in D:\ALURA\REST COM NODEJS\PROJETOS
- .\controllers\atendimentos.js
servidor rodando na porta 3000
D:\ALURA\REST COM NODEJS\PROJETOS\node_modules\mysql\lib\protocol\Parser.js:437
throw err; // Rethrow non-MySQL errors ^
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received type number (240516) at new NodeError (node:internal/errors:371:5) at Function.from (node:buffer:322:9) at Object.Auth.token (D:\ALURA\REST COM NODEJS\PROJETOS\node_modules\mysql\lib\protocol\Auth.js:41:29) at Handshake.sendCredentials (D:\ALURA\REST COM NODEJS\PROJETOS\nodemodules\mysql\lib\protocol\sequences\Handshake.js:98:14) at Handshake.HandshakeInitializationPacket (D:\ALURA\REST COM NODEJS\PROJETOS\node_modules\mysql\lib\protocol\sequences\Handshake.js:80:10) at Protocol.parsePacket (D:\ALURA\REST COM NODEJS\PROJETOS\nodemodules\mysql\lib\protocol\Protocol.js:291:23) at Parser.parsePacket (D:\ALURA\REST COM NODEJS\PROJETOS\nodemodules\mysql\lib\protocol\Parser.js:433:10) at Parser.write (D:\ALURA\REST COM NODEJS\PROJETOS\node_modules\mysql\lib\protocol\Parser.js:43:10) at Protocol.write (D:\ALURA\REST COM NODEJS\PROJETOS\node_modules\mysql\lib\protocol\Protocol.js:38:16) at Socket. (D:\ALURA\REST COM NODEJS\PROJETOS\node_modules\mysql\lib\Connection.js:88:28) { code: 'ERR_INVALID_ARG_TYPE' }
[nodemon] app crashed - waiting for file changes before starting...