一、下载

可通过官网下载: https://developer.harmonyos.com/cn/develop/devevo-studio

二、安装(经过实践了)

HarmonyOS-安装篇(DevEco Studio)_jquery

HarmonyOS-安装篇(DevEco Studio)_虚拟设备_02

HarmonyOS-安装篇(DevEco Studio)_jquery_03

HarmonyOS-安装篇(DevEco Studio)_虚拟设备_04

HarmonyOS-安装篇(DevEco Studio)_jquery_05

三、配置

•nodejs&ohpm配置

HarmonyOS-安装篇(DevEco Studio)_官网_06

•SDK配置

HarmonyOS-安装篇(DevEco Studio)_虚拟设备_07

HarmonyOS-安装篇(DevEco Studio)_官网_08

HarmonyOS-安装篇(DevEco Studio)_jquery_09

•等待(这块还是稍微有点慢,不要焦急😂)

HarmonyOS-安装篇(DevEco Studio)_官网_10

四、应用(demo)

•HelloWorld工程创建(选择应用模板,继续点击Next即可创建完成)

HarmonyOS-安装篇(DevEco Studio)_jquery_11

•添加设备(此处我添加的是手机虚拟设备)

HarmonyOS-安装篇(DevEco Studio)_虚拟设备_12

HarmonyOS-安装篇(DevEco Studio)_虚拟设备_13

•设备命名(我是使用的默认的名字)

HarmonyOS-安装篇(DevEco Studio)_jquery_14

•添加成功(点击OK完成即可)

HarmonyOS-安装篇(DevEco Studio)_官网_15

•设备运行(大功告成,还是很开心的😁)

HarmonyOS-安装篇(DevEco Studio)_官网_16

HarmonyOS-安装篇(DevEco Studio)_jquery_17

五、踩坑总结

•报错

npm ERR! code CERT_HAS_EXPIRED

npm ERR! errno CERT_HAS_EXPIRED

npm ERR! request to https://registry.npm.taobao.org/jquery failed, reason: certificate has expired

•解决(可参考如下命令解决)

npm cache clean --force
npm config set strict-ssl false
npm install