当前位置: 代码迷 >> 综合 >> vue运行报错events.js:173 throw er; // Unhandled ‘error‘ event ^ Error: spawn cscript ENOEN
  详细解决方案

vue运行报错events.js:173 throw er; // Unhandled ‘error‘ event ^ Error: spawn cscript ENOEN

热度:69   发布时间:2023-11-18 12:18:11.0

vue运行时报错:一般是运行vue 项目或node时报这种错误,但解决办法都一样

C:\Users\Administrator\Desktop\code>vue ui Starting GUI...Ready on http://localhost:8000
8000
events.js:173throw er; // Unhandled 'error' event^Error: spawn cscript ENOENTat Process.ChildProcess._handle.onexit (internal/child_process.js:248:19)at onErrorNT (internal/child_process.js:431:16)at processTicksAndRejections (internal/process/task_queues.js:83:17)
Emitted 'error' event at:at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)at onErrorNT (internal/child_process.js:431:16)at processTicksAndRejections (internal/process/task_queues.js:83:17)

解决方案:

在环境变量path中添加System32的路径,一般路径在C:\Windows\System32
  相关解决方案