Technology Sharing

A collection of problems encountered when using HBuilder X to develop uniapp applets

2024-07-11

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

Background

HBuilder X version: HBuilderX.4.15.2024050802
WeChat developer tool version: wechat_devtools_1.06.2405020_win32_x64

Question Collection

When I try to run a project created directly with HBuilder X in a browser or WeChat applet, I encounter the following problems:

1. When HBuilderX clicks on the browser to run, uni-app vue3编译器下载失败 安装错误

The log is as follows:
insert image description here
It was found that no update or plugins folder was written successfully.solution
Close HBuilder X, then right-click and open it as an administrator, then click Run in the browser again, and the installation will be successful.
It should be a system installation permission issue. The parsing time during installation is too long. Please wait patiently.

Refer to the official website for a summary of plugin installation failures:

https://hx.dcloud.net.cn/Tutorial/PluginsInstall?id=install-fail

Or refer to the summary of problems encountered by other students:

https://blog.csdn.net/qq_52683382/article/details/132039806

2. When HBuilderX clicks on the WeChat applet to run, it will report 微信开发者工具打开项目失败,请参阅启动日志mistake

This problem requires three steps to solve:

  • In HBulider X Tools-Run Configuration-Mini Program Run Configuration Configure the location of the locally installed WeChat developer tools in the item
    insert image description here
  • In WeChat developer tools,Tools-Security-Service Port To open
    insert image description here
  • Finally, when running, you may report an error like this
    insert image description here
node.exe: --openssl-legacy-provider is not allowed in NODE_OPTIONS