1
resposta

Erro no npm install

npm start

alurapic@1.0.0 start /home/marcio/angular/api node server.js

internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'sqlite3' at Function.Module.resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module.load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/home/marcio/angular/api/config/database.js:1:17) at Module.compile (internal/modules/cjs/loader.js:778:30) at Object.Module.extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! alurapic@1.0.0 start: node server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alurapic@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/marcio/.npm/logs/2020-07-28T2258_48_450Z-debug.log

1 resposta

Fala ai Marcio, tudo bem? Tenta fazer o seguinte:

  1. Remove a pasta node_modules e package-lock.json.
  2. Instale tudo novamente: npm i.
  3. Tente subir novamente: npm start.

O ponto importante é remover o node_modules e package-lock.json.

Espero ter ajudado.