HBuilderX報錯【插件xx下載錯誤,請檢查網(wǎng)絡(luò)是否正常!】的解決方法叮叹,可自己手動安裝艾栋,
遇到以下情況
先自己檢查下運行日志,路徑幫助->查看運行日志
滾到你當(dāng)時的日志衬横,一般是最下面裹粤,command+?? 快捷鍵 快速滾到當(dāng)時的日志,或者 command+s 搜索關(guān)鍵字蜂林,比如我是安裝sass失敗的遥诉,搜索plugin 或者 sass,command+g 檢索下一個搜索結(jié)果噪叙,查看當(dāng)時為什么失敗矮锈,我的日志是
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
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 不一致導(dǎo)致,拒絕安裝睁蕾,不管了苞笨,我們手動安裝,瀏覽器子眶,迅雷啥的 下載工具 手動下載 https://update.dcloud.net.cn/hbuilderx/alpha/macosx/plugins/contents/compile-node-sass.0.0.1-2019091819.zip
解壓(文件名不能瞎寫瀑凝,有規(guī)則的,我這里是compile-node-sass)放到
比如
sass里的package.json
就是compile-node-sass
copy
完目錄臭杰,把HBuilderX
強(qiáng)殺掉(command+q
) 或用 活動監(jiān)視器 殺掉啥的粤咪,再重新打開,你就會發(fā)現(xiàn)插件自動識別
可以安心寫代碼了渴杆,官方竟然不出
手動安裝插件
這個教程寥枝,我真的是服了