Quando executo o start aparece essa mensagem:
[nodemon] 1.19.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server.js`
internal/modules/cjs/loader.js:1032
throw err;
^
Error: Cannot find module 'sqlite'
Require stack:
- C:\Users\PC-Win10\Documents\Jorge Luis\Cursos\02 - Alura - JavaScript\XX - Fetch API - Consumindo uma API Rest com JavaScript\server-petshop\infraestrutura\database\tabelas.js
- C:\Users\PC-Win10\Documents\Jorge Luis\Cursos\02 - Alura - JavaScript\XX - Fetch API - Consumindo uma API Rest com JavaScript\server-petshop\server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
at Function.Module._load (internal/modules/cjs/loader.js:898:27)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object.<anonymous> (C:\Users\PC-Win10\Documents\Jorge Luis\Cursos\02 - Alura - JavaScript\XX - Fetch API - Consumindo uma API Rest com JavaScript\server-petshop\infraestrutura\database\tabelas.js:2:16)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\PC-Win10\\Documents\\Jorge Luis\\Cursos\\02 - Alura - JavaScript\\XX - Fetch API - Consumindo uma API Rest com JavaScript\\server-petshop\\infraestrutura\\database\\tabelas.js',
'C:\\Users\\PC-Win10\\Documents\\Jorge Luis\\Cursos\\02 - Alura - JavaScript\\XX - Fetch API - Consumindo uma API Rest com JavaScript\\server-petshop\\server.js'
]
}
[nodemon] app crashed - waiting for file changes before starting...
Obs.: Já apaguei a pasta node_modules e o arquivo json, como descrito nas dúvidas dos colegas acima.