赞
踩
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/
下载依赖的试试报错:
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 signed certificate in certificate chain
该问题可能是校验registry证书时出现问题。
解决方法:
进入C:/Users/用户名目录/.ohpm,打开.ohpmrc文件,添加如下配置
strict_ssl=false //屏蔽证书校验
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。