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