Symptom
The following error is reported during compilation:
ohpm ERROR: EFETCH Fetch local file package error, D:\dev\harmonyos\mgty-ohos-phone\oh_modules.ohpm@ohos+mgkv@pediph1+Vjwini4jdg9r1s9hqaq=\oh_modules@ohos\mgkv\libs\MMKV.har does not exist.
ohpm ERROR: missing: D:\dev\harmonyos\mgty-ohos-phone\oh_modules.ohpm@ohos+mgkv@pediph1+Vjwini4jdg9r1s9hqaq=\oh_modules@ohos\mgkv\libs\MMKV.har, required by @ohos/mgkVOD:/dev/harmony/mgtv-ohos-phone/baseLib/kv/Lib/ngkv.nde.
ohpm ERROR: ERUNNING execute tasks failed, Error: Dependency node build failed.
ohpm ERROR: EINSTALL install failed, Error: Dependency node build failed.
Install failed.
Possible Causes
Since ohpm 1.4.0, there are relative path dependencies in the HAR files. This issue occurs if the corresponding dependencies are not added when oh_modules is generated.
Solution