No meu MAC não está iniciando o LocalHost com o JSON Server - Eis o que acontece abaixo:
turisouza@MacBook-Pro-de-Turi alura-play % json-server --watch db.json
--watch/-w can be omitted, JSON Server 1+ watches for file changes by default
node:internal/bootstrap/switches/does_own_process_state:138
cachedCwd = rawMethods.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:138:28)
at new App (file:///usr/local/lib/node_modules/json-server/node_modules/@tinyhttp/app/dist/index.js:187:25)
at createApp (file:///usr/local/lib/node_modules/json-server/lib/app.js:19:17)
at file:///usr/local/lib/node_modules/json-server/lib/bin.js:116:13 {
errno: -2,
code: 'ENOENT',
syscall: 'uv_cwd'
}
Node.js v20.11.0