做完上一篇的工作,即vue -V可以正常运行之后,我们使用vue ui指令,会发现报以下错误:

Error: spawn cmd ENOENT
Emitted ‘error’ event on ChildProcess instance at:
errno: ‘ENOENT’,
code: ‘ENOENT’,
syscall: ‘spawn cmd’,
path: ‘cmd’,
spawnargs: [ ‘/c’, ‘start’, ‘""’, ‘/b’, ‘http://localhost:8000’ ]

解决办法:
系统变量Path中,编辑,新建,vue ui
加入如图两个变量:
C:\Windows\System32
%SystemRoot%\system32;
注意第二个要带着分号!
完美解决!

相关文章:

  • 2022-12-23
  • 2021-12-26
  • 2021-11-30
  • 2021-06-03
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2021-12-11
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案