20:03:36.373 ✘ [ERROR] Cannot start service: Host version "0.16.17" does not match binary version "0.17.19"
20:03:36.373 1 error
20:03:36.377 failed to load config from /Users/leirui/Code/work/uni-preset-vue-vite-ts/vite.config.ts
20:03:36.378 error when starting dev server:
20:03:36.384 Error: The service was stopped
20:03:36.399 at /Users/leirui/Code/work/uni-preset-vue-vite-ts/node_modules/vite/node_modules/esbuild/lib/main.js:1145:25
20:03:36.412 at Object.responseCallbacks.<computed> (/Users/leirui/Code/work/uni-preset-vue-vite-ts/node_modules/vite/node_modules/esbuild/lib/main.js:701:9)
20:03:36.413 at Socket.afterClose (/Users/leirui/Code/work/uni-preset-vue-vite-ts/node_modules/vite/node_modules/esbuild/lib/main.js:691:28)
20:03:36.425 at Socket.emit (node:events:525:35)
20:03:36.438 at endReadableNT (node:internal/streams/readable:1358:12)
20:03:36.451 at processTicksAndRejections (node:internal/process/task_queues:83:21)
- 发布:2023-08-08 20:33
- 更新:2023-09-19 17:33
- 阅读:571
【报Bug】mac m1芯片 Cannot start service: Host version "0.16.17" does not match binary version "0.17.19"
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: m1芯片
手机系统: 全部
手机厂商: 华为
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: CLI
CLI版本号: 5.0.4
示例代码:
操作步骤:
macbook m1芯片 vite4 运行项目 报错Cannot start service: Host version "0.16.17" does not match binary version "0.17.19" 如果不能复现, 使用npx @dcloudio/uvm alpha命令后再看看。
macbook m1芯片 vite4 运行项目 报错Cannot start service: Host version "0.16.17" does not match binary version "0.17.19" 如果不能复现, 使用npx @dcloudio/uvm alpha命令后再看看。
预期结果:
正常运行
正常运行
实际结果:
Cannot start service: Host version "0.16.17" does not match binary version "0.17.19"
20:03:36.373 1 error
Cannot start service: Host version "0.16.17" does not match binary version "0.17.19"
20:03:36.373 1 error
bug描述:
macbook m1芯片 vite4 运行项目 报错Cannot start service: Host version "0.16.17" does not match binary version "0.17.19" 如果不能复现, 使用npx @dcloudio/uvm alpha命令后再看看。
vite3版本可以通过:
curl -O https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.42.tgz
tar xf ./esbuild-darwin-64-0.14.42.tgz
来解决,但是vite4以上解决不了 esbuild-darwin-64 没有0.16.17的版本
2 个回复
kernelX
解决了嘛?同样遇到这问题
森林互动
mac系统有相同问题,希望官方答复
kernelX
我后面没有用hbuild提供的本地打包,使用cli命令打包的,然后再使用打包后的app文件夹作为项目导入到hbuild里面间接跳过了这个问题
2023-11-14 10:13