Bom dia, Quando eu tento reinstalar os módulos ela apresenta a seguinte mensagem de erro.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@4.0.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@4.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
e quando eu tendo subir o projeto com o npm start ele apresenta a seguinte mensagem de erro.
Error: Cannot find module 'sqlite3'
Require stack:
- D:\node\casadocodigo\src\config\database.js
- D:\node\casadocodigo\src\app\rotas\rotas.js
- D:\node\casadocodigo\src\config\custom-express.js
- D:\node\casadocodigo\server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (D:\node\casadocodigo\src\config\database.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'D:\\node\\casadocodigo\\src\\config\\database.js',
'D:\\node\\casadocodigo\\src\\app\\rotas\\rotas.js',
'D:\\node\\casadocodigo\\src\\config\\custom-express.js',
'D:\\node\\casadocodigo\\server.js'
]
}