IDE 工具拉取 Lottie 库时报错网络超时
ohpm INFO: fetch meta info of package '@ohos/lottie' success https://xxx.harmonyos.com/ohpm/@ohos/lottie
ohpm ERROR: Found exception: FetchError: request to https://xxx.xxx.cn/pub_1/DevEcoSpace_DevEcoSpace_901_9/b9/v3/b7c0xxx23-58ac-4995-8520-9d5c57847ab5/lottie-2.0.9.har failed, reason: read ECONNRESET, reached retry limit or non retryable error encountered.
可以执行下ohpm info @ohos/lottie命令,检查下是否能够查看到包的信息参考地址:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-environment-config-0000001507213638\#section53705361163
1.可以检查下网络连接是稳定状态
2.检查ohpm配置,尤其registry的设置
3.尝试清理ohpm缓存,有时缓存中的错误数据会导致连接问题文档配置参考:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-environment-config-0000001507213638\#section53705361163