Bom dia,
Após a tentativa de start da API, está me retornando erro:
╭─jeff-cezar@jeffcezar-dell ~/Cursos/Alura/DevOps/api-alurabooks ‹main●›
╰─$ npm run start-auth
> json-server-api@1.0.0 start-auth
> node server.js
node:internal/modules/cjs/loader:1189
throw err;
^
Error: Cannot find module 'json-server'
Require stack:
- /home/jeff-cezar/Cursos/Alura/DevOps/api-alurabooks/server.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1186:15)
at Module._load (node:internal/modules/cjs/loader:1012:27)
at Module.require (node:internal/modules/cjs/loader:1271:19)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (/home/jeff-cezar/Cursos/Alura/DevOps/api-alurabooks/server.js:3:20)
at Module._compile (node:internal/modules/cjs/loader:1434:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
at Module.load (node:internal/modules/cjs/loader:1249:32)
at Module._load (node:internal/modules/cjs/loader:1065:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/jeff-cezar/Cursos/Alura/DevOps/api-alurabooks/server.js' ]
}
Node.js v22.2.0
Já rodei o comando "npm install" e tentei instalar manualmente as dependências do projeto e nada resolveu.