Sempre quando salvo da esse erro:
[nodemon] restarting due to changes...
[nodemon] starting node index.js
(node:31028) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [Bus]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ...
to show where the warning was created)
node:internal/modules/cjs/loader:943
throw err;
^
Error: Cannot find module 'mysql' Require stack:
- C:\Users\CRM780\Desktop\Curso-rest-api\infraestrutura\conexao.js
- C:\Users\CRM780\Desktop\Curso-rest-api\index.js at Function.Module.resolveFilename (node:internal/modules/cjs/loader:940:15) at Function.Module.load (node:internal/modules/cjs/loader:773:27) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:93:18) at Object. (C:\Users\CRM780\Desktop\Curso-rest-api\infraestrutura\conexao.js:1:15) at Module.compile (node:internal/modules/cjs/loader:1108:14) at Object.Module.extensions..js (node:internal/modules/cjs/loader:1137:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Function.Module.load (node:internal/modules/cjs/loader:828:14) at Module.require (node:internal/modules/cjs/loader:1012:19) { code: 'MODULENOT_FOUND', requireStack: [ 'C:\Users\CRM780\Desktop\Curso-rest-api\infraestrutura\conexao.js', 'C:\Users\CRM780\Desktop\Curso-rest-api\index.js' ] } [nodemon] app crashed - waiting for file changes before starting...
Alguem pode me ajudar?