Ao tentar rodar a API fake, me deparo com o seguinte erro.
\{^_^}/ hi!
Loading backend/videos.json
Oops, backend/videos.json doesn't seem to exist
Creating backend/videos.json with some default data
Error: ENOENT: no such file or directory, open 'backend/videos.json'
at Object.openSync (node:fs:581:18)
at Object.writeFileSync (node:fs:2345:35)
at /usr/local/lib/node_modules/json-server/lib/cli/utils/load.js:34:12
at new Promise (<anonymous>)
at module.exports (/usr/local/lib/node_modules/json-server/lib/cli/utils/load.js:28:10)
at start (/usr/local/lib/node_modules/json-server/lib/cli/run.js:90:12)
at module.exports (/usr/local/lib/node_modules/json-server/lib/cli/run.js:129:3)
at module.exports (/usr/local/lib/node_modules/json-server/lib/cli/index.js:76:3)
at Object.<anonymous> (/usr/local/lib/node_modules/json-server/lib/cli/bin.js:5:14)
at Module._compile (node:internal/modules/cjs/loader:1376:14) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'backend/videos.json'