uniapp 运行报错 Cannot start service: Host version “0.16.13“ does not match binary version “0.15.18“ 解决

1、报错如下:

uniapp 运行报错 Cannot start service: Host version “0.16.13“ does not match binary version “0.15.18“ 解决_第1张图片

2、解决办法

  • 下载满足条件的指定包
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  

下载后解压得到 package, 重命名为: esbuild-darwin-64
uniapp 运行报错 Cannot start service: Host version “0.16.13“ does not match binary version “0.15.18“ 解决_第2张图片
esbuild-darwin-64 文件夹复制到项目的node_modules 目录中再次运行即可。

你可能感兴趣的:(mini-program,uniapp,uni-app)