DevEco studio 创建activity工程模板无法运行
ohpm INFO: MetaDataFetcher fetching meta info of package ‘@ohos/hypium’ from https://repo.harmonyos.com/npm/ohpm INFO: MetaDataFetcher fetching meta info of package ‘@ohos/hamock’ from https://repo.harmonyos.com/npm/
ohpm ERROR: UNABLE_TO_VERIFY_LEAF_SIGNATURE request to https://repo.harmonyos.com/npm/@ohos/hypium failed, reason: unable to verify the first certificate
ohpm ERROR: missing: @ohos/hypium@1.0.16, required by myapplication@1.0.0ohpm ERROR: Found exception: FetchError: request to https://repo.harmonyos.com/npm/@ohos/hypium failed, reason: unable to verify the first certificate, reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, FetchError: request to https://repo.harmonyos.com/npm/@ohos/hypium failed, reason: unable to verify the first certificateohpm ERROR: EINSTALL Install failed, detail: FetchError: request to https://repo.harmonyos.com/npm/@ohos/hypium failed, reason: unable to verify the first certificateInstall failedo
hpm ERROR: UNABLE_TO_VERIFY_LEAF_SIGNATURE request to https://repo.harmonyos.com/npm/@ohos/hamock failed, reason: unable to verify the first certificateohpm ERROR: missing: @ohos/hamock@1.0.0, required by myapplication@1.0.0ohpm ERROR: Found exception: FetchError: request to https://repo.harmonyos.com/npm/@ohos/hamock failed, reason: unable to verify the first certificate, reached retry limit or non retryable error encountered.
Process finished with exit code 1
登陆华为开发者账号后,创建模板工程运行报错。
请按照如下步骤排查:
(1)诊断开发环境是否正常,可以参考:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-environment-config-0000001507213638-V5#section1912218441119
(2)检查一下代理配置是否正确,可以参考:
配置DevEco Studio代理:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-environment-config-0000001507213638-V5
配置NPM代理:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-environment-config-0000001507213638#section53705361163
配置OHPM代理:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-environment-config-0000001507213638#section10372836765