vite 启动项目 报错 spawnargs: [ ‘--service=0.12.15‘, ‘--ping‘ ]

当前项目使用的是 vue3-antd-admin 框架
vue3-antd-admin 框架 详细地址

我们运行项目的时候发现报以下错误,npm i 了也不行,

node:events:504
      throw er; // Unhandled 'error' event
      ^
 
Error: spawn C:\Users\DELL\Desktop\vue3-antd-admin-master\node_modules\esbuild\esbuild.exe ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:480:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
    at onErrorNT (node:internal/child_process:480:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn C:\\Users\\DELL\\Desktop\\vue3-antd-admin-master\\node_modules\\esbuild\\esbuild.exe',
  path: 'C:\\Users\\DELL\\Desktop\\vue3-antd-admin-master\\node_modules\\esbuild\\esbuild.exe',
  spawnargs: [ '--service=0.12.14', '--ping' ]
}

我们重新执行代码段:

node node_modules/esbuild/install.js

在重新运行项目

npm run dev

vite 启动项目 报错 spawnargs: [ ‘--service=0.12.15‘, ‘--ping‘ ]_第1张图片

你可能感兴趣的:(前端框架)