Quando eu vou dar o comando npm start, ele mostra esse erro, mas eu não encontro o erro.
const db = require('../../config/database');
module.exports = (app) =>{
app.get('/', function (req, resp) {
resp.send(
`
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<h1> CASA DO CODIGO </h1>
</body>
</html>
`)
});
app.get('/livros', function (req, resp) {
db.all('SELECT * FROM livros', function(erro, resultados){
resp.marko(
require('../views/livros/lista/lista.marko'),
{
livros: resultados
}
);
})
erro que aparece
Error: Cannot find module 'sqlite3' at Function.Module.resolveFilename (internal/modules/cjs/loader.js:649:15) at Function.Module.load (internal/modules/cjs/loader.js:575:25) at Module.require (internal/modules/cjs/loader.js:705:19) at require (internal/modules/cjs/helpers.js:14:16) at Object. (C:\Users\YuriPNP\Desktop\casa-do-codigo\src\config\database.js:1:17) at Module.compile (internal/modules/cjs/loader.js:799:30) at Object.Module.extensions..js (internal/modules/cjs/loader.js:810:10) at Module.load (internal/modules/cjs/loader.js:666:32) at tryModuleLoad (internal/modules/cjs/loader.js:606:12) at Function.Module._load (internal/modules/cjs/loader.js:598:3)