Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro no NPM install

Quando rodo o NPM install gera esse erro, tentei algumas das soluções que vi aqui no fórum mais não resolveu.

[nodemon] 1.10.2 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node server.js node:internal/modules/cjs/loader:928 throw err; ^

Error: Cannot find module 'C:\Users\Raul\Desktop\server-petshop-master\server-petshop\node_modules\sqlite3\lib\binding\node-v88-win32-x64\node_sqlite3.node' Require stack:

  • C:\Users\Raul\Desktop\server-petshop-master\server-petshop\node_modules\sqlite3\lib\sqlite3.js
  • C:\Users\Raul\Desktop\server-petshop-master\server-petshop\node_modules\sqlite\main.js
  • C:\Users\Raul\Desktop\server-petshop-master\server-petshop\infraestrutura\database\tabelas.js
  • C:\Users\Raul\Desktop\server-petshop-master\server-petshop\server.js at Function.Module.resolveFilename (node:internal/modules/cjs/loader:925:15) at Function.Module.load (node:internal/modules/cjs/loader:769:27) at Module.require (node:internal/modules/cjs/loader:997:19) at require (node:internal/modules/cjs/helpers:92:18) at Object. (C:\Users\Raul\Desktop\server-petshop-master\server-petshop\node_modules\sqlite3\lib\sqlite3.js:4:15) at Module.compile (node:internal/modules/cjs/loader:1108:14) at Object.Module.extensions..js (node:internal/modules/cjs/loader:1137:10) at Module.load (node:internal/modules/cjs/loader:973:32) at Function.Module.load (node:internal/modules/cjs/loader:813:14) at Module.require (node:internal/modules/cjs/loader:997:19) { code: 'MODULENOT_FOUND', requireStack: [ 'C:\Users\Raul\Desktop\server-petshop-master\server-petshop\node_modules\sqlite3\lib\sqlite3.js', 'C:\Users\Raul\Desktop\server-petshop-master\server-petshop\node_modules\sqlite\main.js', 'C:\Users\Raul\Desktop\server-petshop-master\server-petshop\infraestrutura\database\tabelas.js', 'C:\Users\Raul\Desktop\server-petshop-master\server-petshop\server.js' ] } [nodemon] app crashed - waiting for file changes before starting...
1 resposta
solução!

A solução foi desinstalar o node versao 15 e instalar a versão 10.23.1