Boa tarde,
Estou tentando dificuldades para iniciar o servidor com o auth, fiz a instalação pelo powershell igual o vídeo porém não estou conseguindo iniciar o servidor:
PS C:\Users\VITORIAOLIVEIRA\Documents\EstudosProgramacao\flutter\diary-app\server> json-server-auth --watch --host 192.168.41.134 db.json
node:internal/modules/cjs/loader:1078
throw err;
^
Error: Cannot find module 'express'
Require stack:
- C:\Users\VITORIAOLIVEIRA\AppData\Roaming\npm\node_modules\json-server-auth\dist\guards.js
- C:\Users\VITORIAOLIVEIRA\AppData\Roaming\npm\node_modules\json-server-auth\dist\bin.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\Users\VITORIAOLIVEIRA\AppData\Roaming\npm\node_modules\json-server-auth\dist\guards.js:4:19)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\VITORIAOLIVEIRA\\AppData\\Roaming\\npm\\node_modules\\json-server-auth\\dist\\guards.js',
'C:\\Users\\VITORIAOLIVEIRA\\AppData\\Roaming\\npm\\node_modules\\json-server-auth\\dist\\bin.js'
]
}
Node.js v18.15.0