命令“ ng serve --open”后出现未处理的错误

时间:2019-05-14 07:05:40

标签: angular

我正在尝试使用Angular,并且在遵循入门指南的同时,我在执行第3步时遇到错误,即在运行ng serve --open命令时。它显示编译成功,但随后弹出错误:

events.js:170
      throw er; // Unhandled 'error' event
      ^

Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:247:19)
    at onErrorNT (internal/child_process.js:431:16)
    at processTicksAndRejections (internal/process/task_queues.js:81:17)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:253:12)
    at onErrorNT (internal/child_process.js:431:16)
    at processTicksAndRejections (internal/process/task_queues.js:81:17)

0 个答案:

没有答案