Bom dia !
Estou com problemas para executar o comando citado..
Segue msg do erro e o log.
PS D:\Alura\semana-18\typescript-curso-1-arquivos-iniciais> npm run start
alurabank@1.0.0 start D:\Alura\semana-18\typescript-curso-1-arquivos-iniciais 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:274:19)
[0] at onErrorNT (internal/child_process.js:469: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:274:19)
[1] at onErrorNT (internal/child_process.js:469: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: npm ERR! C:\Users\Alexandre.DESKTOP-K0MK2R5\AppData\Roaming\npm-cache_logs\2022-06-21T23_20_15_046Z-debug.log PS D:\Alura\semana-18\typescript-curso-1-arquivos-iniciais>
Abaixo o LOG de erro
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm@6.14.16
3 info using node@v14.19.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle alurabank@1.0.0prestart: alurabank@1.0.0
6 info lifecycle alurabank@1.0.0start: alurabank@1.0.0
7 verbose lifecycle alurabank@1.0.0start: unsafe-perm in lifecycle true
8 verbose lifecycle alurabank@1.0.0start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Alura\semana-18\typescript-curso-1-arquivos-iniciais\node_modules.bin;C:\Java\jdk11\bin;C:\dev\Python\Python39\Scripts;C:\dev\Python\Python39;C:\Program Files\Python38\Scripts;C:\Program Files\Python38;C:\Java\apache-maven-3.8.2\bin;C:\Program Files\Git\cmd;C:\Java\gradle-7.2-bin\bin;C:\dev\Dart\dart-sdk\bin;C:\ProgramData\ComposerSetup\bin;C:\Program Files\nodejs;C:\Program Files\MySQL\MySQL Shell 8.0\bin;C:\dev\Python\Python39\Scripts;C:\dev\Python\Python39;C:\DEV\Python\Scripts;C:\DEV\Python;C:\Users\Alexandre.DESKTOP-K0MK2R5\AppData\Local\Microsoft\WindowsApps;C:\Java\jre1.8.0_301\bin;C:\Java\apache-maven-3.8.2\bin\bin;C:\Java\apache-maven-3.8.2\bin;C:\dev\JetBrains\PyCharm Edu 2021.2\bin;;C:\Users\Alexandre.DESKTOP-K0MK2R5\AppData\Local\Programs\Microsoft VS Code\bin;C:\DEV\xampp\php;C:\Users\Alexandre.DESKTOP-K0MK2R5\AppData\Roaming\Composer\vendor\bin;C:\Users\Alexandre.DESKTOP-K0MK2R5\AppData\Roaming\npm
9 verbose lifecycle alurabank@1.0.0start: CWD: D:\Alura\semana-18\typescript-curso-1-arquivos-iniciais
10 silly lifecycle alurabank@1.0.0start: Args: [ '/d /s /c', 'concurrently "npm run watch" "npm run server"' ]
11 silly lifecycle alurabank@1.0.0start: Returned: code: 1 signal: null
12 info lifecycle alurabank@1.0.0start: Failed to exec start script
13 verbose stack Error: alurabank@1.0.0 start: concurrently "npm run watch" "npm run server"
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:400:28)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:400:28)
13 verbose stack at maybeClose (internal/child_process.js:1058:16)
13 verbose stack at Process.ChildProcess.handle.onexit (internal/childprocess.js:293:5)
14 verbose pkgid alurabank@1.0.0
15 verbose cwd D:\Alura\semana-18\typescript-curso-1-arquivos-iniciais
16 verbose Windows_NT 10.0.19044
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "start"
18 verbose node v14.19.1
19 verbose npm v6.14.16
20 error code ELIFECYCLE
21 error errno 1
22 error alurabank@1.0.0 start: concurrently "npm run watch" "npm run server"
22 error Exit status 1
23 error Failed at the alurabank@1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]