之前用的win系统通过 vue-cli v3+vite 构建的项目,在mac启动失败,报错如下:
3 ✘ [ERROR] Cannot start service: Host version "0.14.54" does not match binary version "0.15.18"
14:45:12.293 1 error
14:45:12.298 failed to load config from /Users/zzb/project/vite.config.js
14:45:12.298 error when starting dev server:
14:45:12.298 Error: The service was stopped
14:45:12.298 at /Users/zzb/project/node_modules/esbuild/lib/main.js:1356:25
14:45:12.298 at /Users/zzb/project/node_modules/esbuild/lib/main.js:678:9
14:45:12.298 at Socket.afterClose (/Users/zzb/project/node_modules/esbuild/lib/main.js:656:7)
14:45:12.298 at Socket.emit (node:events:529:35)
14:45:12.298 at endReadableNT (node:internal/streams/readable:1400:12)
14:45:12.298 at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
有很多node包都是0.14.54,vite使用的是2.9.14,如何把整个项目升级为0.15.18 所适配的的架构呢?
0 个回复