HarmonyOS 私有ohpm库,上传包成功但是ohpm i 时报错?

/Applications/DevEco-Studio.app/Contents/tools/ohpm/bin/ohpm install --all --registry http://xxx/j2c/hm_ohpm/repos/ohpm/ --strict_ssl true
ohpm INFO: MetaDataFetcher fetching meta info of package '@j2c/deviceManager' from http://xxx/j2c/hm_ohpm/repos/ohpm/
ohpm WARN: fetch meta info of package '@j2c/deviceManager' failed - GET http://xxx/j2c/hm_ohpm/repos/ohpm/@j2c/deviceManager 404
ohpm ERROR: NOTFOUND package '@j2c/deviceManager@1.0.1' not found from all the registries http://xxx/j2c/hm_ohpm/repos/ohpm/
ohpm ERROR: missing: @j2c/deviceManager@1.0.1, required by entry@1.0.0
ohpm ERROR: Found exception: Error: FetchPackageInfo: "@j2c/deviceManager" failed, reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: FetchPackageInfo: "@j2c/deviceManager" failed
ohpm ERROR: Install failed, detail: Error: FetchPackageInfo: "@j2c/deviceManager" failed

引用包时会报如上错误。

阅读 643
1 个回答

需要将strict\_ssl设置为false。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进