纯血鸿蒙开发DevEco Studio NEXT Release5.0.3.900 ohpm ERROR: Install failed, detail: Error: ENOENT: no such

纯血鸿蒙开发 DevEco Studio NEXT Release5.0.3.900编译器报错的问题

这个问题经常出现在更换了三方har包之后

控制台会提示

ohpm ERROR: missing: xxxx@/Users/yyy/Downloads/hm/hm_hm/oh_modules/.ohpm/aaaaaaaaasdk@xxxxxxxx=/oh_modules/xxxxxsdk/libs/xxxxx-7861786.har, required by aaaaaasdk@/Users/yyy/Downloads/hm/hm_hm/xxx_/lib/xxxxxSDK-xxxxx-xxxxx-xxxxhar

ohpm ERROR: Found exception: Error: ENOENT: no such file or directory, stat '/Users/yyy/Downloads/hm/hm_hm/oh_modules/.ohpm/[email protected]', reached retry limit or non retryable error encountered.

ohpm ERROR: ERUNNING execute tasks failed, Error: ENOENT: no such file or directory, stat '/Users/yyy/Downloads/hm/hm_hm/oh_modules/.ohpm/[email protected]'

ohpm ERROR: Install failed, detail: Error: ENOENT: no such file or directory, stat '/Users/yyy/Downloads/hm/hm_hm/oh_modules/.ohpm/[email protected]'

Process finished with exit code 1

解决办法是,把工程里所有的 oh-package-lock.json5 删掉,重新运行

即可解决

运行成功后再把删除的文件从git重置回去也不影响

你可能感兴趣的:(harmonyos,华为)