1.1K Star 6.2K Fork 5.1K

OpenHarmony / docs

 / 详情

[问题咨询]: 针对OrangeShopping购物示例应用,ohpm install失败问题

待办的
创建于  
2024-04-26 16:34

问题描述

【问题现象】
下载示例库中,尝试进行编译https://gitee.com/openharmony/applications_app_samples/tree/master/code/Solutions/Shopping/OrangeShopping

从报错提示看是ohpm install失败,提示不识别libs\ohos-video-componen
t-1.0.6.har,TAR_BAD_ARCHIVE: Unrecognized archive format。

期望知道如何解决这个问题

提示如下内容:

"\"D:\Program Files\DevEco Studio\tools\ohpm\bin\ohpm.bat\"" install --all --registry https://cmc.centralrepo.rnd.huawei.com/artifactory/api/npm/product_npm/,https://mirrors.tools.huawei.com/npm/ --strict_ssl false
ohpm WARN: local dependency "@ohos/details-page-hsp" found in "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShop
ping\entry\oh-package.json5" does not match the actual name "detailpagehsp" of its oh-package.json5
ohpm WARN: local dependency "@ohos/navigation-component" found in "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\Orange
Shopping\entry\oh-package.json5" does not match the actual name "NavigationHome" of its oh-package.json5
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-video-componen
t-1.0.6.har" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/video-component@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-video
-component-1.0.6.har, required by product@1.0.0
ohpm ERROR: missing: @ohos/video-component@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-video
-component-1.0.6.har, required by detailpagehsp@1.0.0
ohpm ERROR: missing: @ohos/video-component@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-video
-component-1.0.6.har, required by @ohos/details-page-hsp@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\f
eature\detailPageHsp
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: readPkgJson failed!,Error: readPkgJson failed!
ohpm ERROR: ERUNNING execute tasks failed, Error: readPkgJson failed!
ohpm ERROR: EINSTALL Install failed, detail: Error: readPkgJson failed!,Error: readPkgJson failed!
Install failed                                                                                    
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-qr-code-scan-1
.0.2.har" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/scan-component@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-qr-cod
e-scan-1.0.2.har, required by product@1.0.0
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-sharecomponent
-1.0.2.har" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/share-component@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-share
component-1.0.2.har, required by product@1.0.0
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-sharecomponent
-1.0.2.har" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/sharecomponent@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-sharec
omponent-1.0.2.har, required by detailpagehsp@1.0.0
ohpm ERROR: missing: @ohos/sharecomponent@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-sharec
omponent-1.0.2.har, required by @ohos/details-page-hsp@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\fea
ture\detailPageHsp
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-http-1.0.0.tgz
" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/http@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-http-1.0.0.tgz, 
required by product@1.0.0
ohpm ERROR: missing: @ohos/http@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-http-1.0.0.tgz, 
required by NavigationHome@1.0.0
ohpm ERROR: missing: @ohos/http@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-http-1.0.0.tgz, 
required by @ohos/navigation-component@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\feature\navigationH
ome
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: readPkgJson failed!
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-notification-1
.0.0.tgz" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/notification@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-notifica
tion-1.0.0.tgz, required by product@1.0.0
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-updatedialog-1
.0.0.tgz" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/updatedialog@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-updatedi
alog-1.0.0.tgz, required by product@1.0.0
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.
ohpm ERROR: Fetch local package: "D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-enter-animatio
n-1.0.1.tgz" failed. Error: TAR_BAD_ARCHIVE: Unrecognized archive format
ohpm ERROR: missing: @ohos/enter-animation@D:\old_drive_E\01_WorkSpace\CODE\OpenHarmony\applications_app_samples\code\Solutions\Shopping\OrangeShopping\libs\ohos-enter
-animation-1.0.1.tgz, required by product@1.0.0
ohpm ERROR: Found exception: Error: readPkgJson failed!, reached retry limit or non retryable error encountered.

Process finished with exit code 1

【环境信息】
1、使用DevEco Studio,Build Version: 5.0.1.100
2、Windows环境

评论 (1)

lmleon 创建了任务
lmleon 添加了
 
question
标签
展开全部操作日志

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @NEEN @zengyawen @时睿 @Peter_1988 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @NEEN @zengyawen @时睿 @Peter_1988 for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs

搜索帮助