반응형
$ concurrently --kill-others-on-fail "yarn server" "yarn client"
[0] Error occurred when executing command: yarn server
[0] Error: spawn cmd.exe ENOENT
[0] at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
[0] at onErrorNT (internal/child_process.js:465:16)
[0] at processTicksAndRejections (internal/process/task_queues.js:80:21)
[1] Error occurred when executing command: yarn client
[1] Error: spawn cmd.exe ENOENT
[1] at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
[1] at onErrorNT (internal/child_process.js:465:16)
[1] at processTicksAndRejections (internal/process/task_queues.js:80:21)
[1] yarn client exited with code -4058
[0] yarn server exited with code -4058
yarn dev 명령을 실행했는데, 이런 오류가 뜬 적이 있다.
오류내용이 정확히 뭔 소린지 이해가 안돼서 구글링을 막 해봤는데
환경변수에 다음 경로를 추가하니 해결되었다.
C:\Windows\System32
반응형