当前位置:   article > 正文

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

error: spawn cscript enoent

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

C:\Users\Administrator\Desktop\code>vue ui 
   Starting GUI...
   Ready on http://localhost:8000
8000
events.js:173
      throw er; // Unhandled 'error' event
      ^

Error: spawn cscript ENOENT
    at 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)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

解决方案:

在环境变量path中添加System32的路径,一般路径在C:\Windows\System32
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/111835
推荐阅读
相关标签
  

闽ICP备14008679号