1
resposta

npm run start

npm run start não está funcionando neste projeto

Dando esse seguinte erro:

alurabank@1.0.0 start C:\Users\Allas\Documents\Programação\JavaScript\FormaçãoTypeScript\typescript-curso-3 concurrently "npm run watch" "npm run server"

[0] Error occurred when executing command: npm run watch [0] Error: spawn cmd.exe ENOENT [0] at Process.ChildProcess.handle.onexit (internal/childprocess.js:269:19) [0] at onErrorNT (internal/child_process.js:467:16) [0] at processTicksAndRejections (internal/process/task_queues.js:82:21) [1] Error occurred when executing command: npm run server [1] Error: spawn cmd.exe ENOENT [1] at Process.ChildProcess.handle.onexit (internal/childprocess.js:269:19) [1] at onErrorNT (internal/child_process.js:467:16) [1] at processTicksAndRejections (internal/process/task_queues.js:82:21) [1] npm run server exited with code -4058 [0] npm run watch exited with code -4058 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! alurabank@1.0.0 start: concurrently "npm run watch" "npm run server" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alurabank@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

tive que utilizar o npm run server

1 resposta

Allas, verifica dentro do teu package.json, na parte de scripts, se lá tem um script iniciando com START.

Caso não tenha, vc pode adicionar assim se desejar.

"start": "concurrently \"npm run watch\" \"npm run server\"",