HBuilderX报错【插件xx下载错误,请检查网络是否正常!】的解决方法,可自己手动安装

HBuilderX报错【插件xx下载错误,请检查网络是否正常!】的解决方法,可自己手动安装,
遇到以下情况


image.png

先自己检查下运行日志,路径帮助->查看运行日志

image.png

滚到你当时的日志,一般是最下面,command+⬇️ 快捷键 快速滚到当时的日志,或者 command+s 搜索关键字,比如我是安装sass失败的,搜索plugin 或者 sass,command+g 检索下一个搜索结果,查看当时为什么失败,我的日志是

2020-04-03 13:54:32.106 [INFO:] Download plugin  "compile-node-sass"
2020-04-03 13:54:33.437 [WARNING:] Download plugin  QUrl("http://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip")  faild, md5:  "e25b0120f2fab052aa4b50155c5562ac"  expected:  "12b0c235774da0f92824621231cdc15c" , try count:  2
2020-04-03 13:54:33.823 [WARNING:] Download plugin  QUrl("http://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip")  faild, md5:  "e25b0120f2fab052aa4b50155c5562ac"  expected:  "12b0c235774da0f92824621231cdc15c" , try count:  3
2020-04-03 13:54:34.051 [WARNING:] Download plugin  QUrl("http://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip")  faild, md5:  "e25b0120f2fab052aa4b50155c5562ac"  expected:  "12b0c235774da0f92824621231cdc15c" , try count:  4
2020-04-03 13:54:34.058 [WARNING:] Download plugin  QUrl("http://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip")   MD5 check faild, try https
2020-04-03 13:54:40.318 [WARNING:] Download plugin  QUrl("https://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip")  faild, md5:  "e25b0120f2fab052aa4b50155c5562ac"  expected:  "12b0c235774da0f92824621231cdc15c" , try count:  2
2020-04-03 13:54:46.610 [WARNING:] Download plugin  QUrl("https://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip")  faild, md5:  "e25b0120f2fab052aa4b50155c5562ac"  expected:  "12b0c235774da0f92824621231cdc15c" , try count:  3
2020-04-03 13:54:56.790 [WARNING:] Download plugin  QUrl("https://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip")  faild, md5:  "e25b0120f2fab052aa4b50155c5562ac"  expected:  "12b0c235774da0f92824621231cdc15c" , try count:  4
2020-04-03 13:54:56.800 [WARNING:] QLayout: Attempting to add QLayout "" to MsgItemWidget "MsgItem", which already has a layout
image.png

2020-04-03 13:54:40.318 [WARNING:] Download plugin QUrl("https://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip") faild, md5: "e25b0120f2fab052aa4b50155c5562ac" expected: "12b0c235774da0f92824621231cdc15c" , try count: 2看的出来是dcloud插件仓库 两个版本插件md5 不一致导致,拒绝安装,不管了,我们手动安装,浏览器,迅雷啥的 下载工具 手动下载 https://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip 解压(文件名不能瞎写,有规则的,我这里是compile-node-sass)放到

image.png

比如sass里的package.json就是compile-node-sass
image.png

copy完目录,把HBuilderX 强杀掉(command+q) 或用 活动监视器 杀掉啥的,再重新打开,你就会发现插件自动识别
image.png

可以安心写代码了,官方竟然不出手动安装插件这个教程,我真的是服了

你可能感兴趣的:(HBuilderX报错【插件xx下载错误,请检查网络是否正常!】的解决方法,可自己手动安装)