Bom dia, realizei o procedimento do curso, porem em um dado momento o servidor parou de conectar e não compreendo o pq, segue abaixo o que aparece no console:
C:\Users\Marcelo\Desktop\ID>npm start
> casadocodigo@1.0.0 start C:\Users\PICHAU\Desktop\ID
> nodemon server.js --ignore *.marko.js
[nodemon] 1.18.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
internal/modules/cjs/loader.js:985
throw err;
^
Error: Cannot find module 'method-override'
Require stack:
- C:\Users\PICHAU\Desktop\ID\src\config\custom-express.js
- C:\Users\PICHAU\Desktop\ID\server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\PICHAU\Desktop\ID\src\config\custom-express.js:7:24)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\PICHAU\\Desktop\\ID\\src\\config\\custom-express.js',
'C:\\Users\\PICHAU\\Desktop\\ID\\server.js'
]
}
[nodemon] app crashed - waiting for file changes before starting...
O que poderia ser?