1
resposta

Executando comando npm run start!

Ao executar 'npm run server' ou 'npm run watch' individualmente não tenho problema. Ao executar o npm run start para rodas os 2 scripts ao mesmo tempo, dá erro:

> alurabank@1.0.0 start
> concurrently "npm run watch" "npm run server"

[0] Error occurred when executing command: npm run watch
[0] Error: spawn cmd.exe ENOENT
[0]     at ChildProcess._handle.onexit (node:internal/child_process:283:19)
[0]     at onErrorNT (node:internal/child_process:476:16)
[0]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)        
[1] Error occurred when executing command: npm run server
[1] Error: spawn cmd.exe ENOENT
[1]     at ChildProcess._handle.onexit (node:internal/child_process:283:19)
[1]     at onErrorNT (node:internal/child_process:476:16)
[1]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)        
[0] npm run watch exited with code -4058
[1] npm run server exited with code -4058
1 resposta

Acredito que tenha faltado rodar no terminal: "npm install start". Para depois conseguir rodar o "npm run start"