1、创建项目报错
Harmony创建FA模型的项目时报如下错:
The registry is empty - edit .ohpmrc file or use "ohpm config set registry your_registry" command to set registry.
解决方法:
File -> Settings -> Build,Execution,Deployment -> Ohpm 配置ohpm仓库,地址如下:
https://repo.harmonyos.com/ohpm/
2、下载依赖报错
下载依赖的试试报错:
ohpm ERROR: SELF_SIGNED_CERT_IN_CHAIN request to https://repo.harmonyos.com/ohpm/xxx failed, reason: self signed certificate in certificate chain
ohpm ERROR: Install failed request to https://repo.harmonyos.com/ohpm/xxx failed, reason: self sign