432 Star 2.3K Fork 522

OpenHarmony / docs

hpm install 下载软件出现问题

缺陷
已完成
kobe sun24  Opened this issue

该问题是怎么引起的?

从hpm网站组件式获取code。在使用hpm install 出现报错

重现步骤

下载组件,解压后使用 hpm install

报错信息

demo1>hpm install
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/huks
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/dfx_common
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/hievent
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/wifi_iot
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/hiview
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/iot_controller
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/hichainsdk
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/syspara
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/bootstrap
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/token
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/build
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/wlan
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/system_ability_manager
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/utils
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/xts
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/hi3861
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/hi3861_adapter
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/wifi_iot_sample_app
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/cjson
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/oem_iotlink
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/cmsis
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/soft_bus
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/gn
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/ninja
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/hilog_m
Requesting: https://hpm.harmonyos.com/registry/api/bundles/@ohos/unity
[WARN] - The license of @ohos/huks is . Notice open-source risks.
[WARN] - The license of @ohos/hichainsdk is . Notice open-source risks.
[WARN] - The license of @ohos/syspara is . Notice open-source risks.
[WARN] - The license of @ohos/wlan is . Notice open-source risks.
[WARN] - The license of @ohos/system_ability_manager is . Notice open-source risks.
[WARN] - The license of @ohos/utils is . Notice open-source risks.
[WARN] - The license of @ohos/xts is . Notice open-source risks.
[WARN] - The license of @ohos/hi3861 is . Notice open-source risks.
[WARN] - The license of @ohos/soft_bus is . Notice open-source risks.
[WARN] - The license of @ohos/gn is . Notice open-source risks.
[WARN] - The license of @ohos/wifi_iot is . Notice open-source risks.
Downloading @ohos/huks
Downloading @ohos/dfx_common
Downloading @ohos/hievent
Downloading @ohos/hiview
Downloading @ohos/iot_controller
Downloading @ohos/hichainsdk
Downloading @ohos/syspara
Downloading @ohos/bootstrap
Downloading @ohos/token
Downloading @ohos/build
Downloading @ohos/wlan
Downloading @ohos/system_ability_manager
Downloading @ohos/utils
Downloading @ohos/xts
Downloading @ohos/hi3861
Downloading @ohos/hi3861_adapter
Downloading @ohos/wifi_iot_sample_app
Downloading @ohos/cjson
Downloading @ohos/oem_iotlink
Downloading @ohos/cmsis
Downloading @ohos/soft_bus
Downloading @ohos/gn
Downloading @ohos/ninja
Downloading @ohos/hilog_m
Downloading @ohos/unity
Downloading @ohos/wifi_iot
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/6f/v3/ZrnPFchVTiSWrnUSD-uswg/02gEoyh_Q1Osh9FLRca6Iw.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/e6/v3/vRRtymL_RSiqN91Ws8Xg4g/vzRqs8-kQpOB3TDwHP5cpw.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\soft_bus@ohos-soft_bus-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/a5/v3/ImyMGbQKQn6JOMuc-gcpsg/GFfkzVkQSOWVnYR45pyxkg.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\unity@ohos-unity-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/e3/v3/0GF8orFNTsekPRnP1cl3zg/PDFwcj70Qy2TrIt0icLB7w.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\hievent@ohos-hievent-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/26/v3/LXx0InWlQ8SNH_N9X5kC8g/DEISLfVQQz64UtqeWV0ytA.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\hichainsdk@ohos-hichainsdk-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/df/v3/4joNfHxHRreADlEm0KJLrA/xZoCatcARqaObo1NHu96gw.tgz
'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\hiview@ohos-hiview-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/8a/v3/wrkX0c4CRxC4lOkOEUi0VA/MqFgj6mER-CAWgqxDr09qg.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\iot_controller@ohos-iot_controller-1.0.0.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/4b/v3/UAG7VhlGTSCojUiWMxcpkQ/EqqSJECxQPq7tmD1glvQTw.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\huks@ohos-huks-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/50/v3/GxKhad-LTBiuLlkebT6opQ/kbblz5usRXq96_CWJpAfJQ.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\hilog_m@ohos-hilog_m-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pu
b_1/DevEcoSpace_1_900_9/fd/v3/4BnNQr64SEesywd8VW2a3A/5DkjwqWwSC2P58ywc7Xjqw.tgz
'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\syspara@ohos-syspara-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pu
b_1/DevEcoSpace_1_900_9/53/v3/2G5-W6loT06S5HHSPa6RGg/cdo07PaISauIY9C8XPz7oA.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\system_ability_manager@ohos-system_ability_manager-1.0.0.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'cp' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/e6/v3/g492Y3IjQf-qQ14GL8xd0Q/pHUaF9KBTEyuAHV9Ymz0vA.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\bootstrap@ohos-bootstrap-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/57/v3/80j11M_7SfuVvHYV0_ks-w/JQ6syQqRS-mDC_2FZK8Unw.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\gn@ohos-gn-0.0.1-1523.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/1a/v3/_NafN1TpRc-WaIvHO8qgnA/x6WdHrNFQ6emCQADsTd3gw.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\build@ohos-build-1.0.1.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/b4/v3/TjFcEXIPRJyMPKSntwCk7Q/s6djlzNwRyuzopVyyRT0RA.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\wifi_iot_sample_app@ohos-wifi_iot_sample_app-1.0.0.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\ninja@ohos-ninja-1.9.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/c6/v3/ZbMe_FCHTrGZRk-HwVeGmA/CL9vXqLVSz6naBdQ_LeTLg.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\xts@ohos-xts-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/96/v3/eheqDNYxQxqjvXsioYbvOw/OLluV7PoRfOZ3izzsIv5_g.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\cjson@ohos-cjson-1.0.0.tgz
Requesting: https://contentcenter-drcn.dbankcdn.com/pub_1/DevEcoSpace_1_900_9/34/v3/pyJ3Qou0RDSP7zvSgoXubw/JcvI0o2lSU-2eHp6CawhGA.tgz
Extracting D:\2019\华为鸿蒙_liteos\code\demo1\ohos_bundles@ohos\utils@ohos-utils-1.0.0.tgz
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
Check error details by "C:\Users\admin.hpm\log\debug\debug.2020-09-18-10-28-18.log"
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'DEST_PATH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

Attachments
total 4 participants

Comments (4)

丛林 2020-09-24 07:53

你是在windows下装了IDE的插件之后才有这个问题的吧?使用hpm编译方法请参考https://harmonyos.51cto.com/posts/805

raoswing 2020-09-24 11:20

由于部分组件安装过程中使用了linux下的命令。
比如设置变量 DEST_PATH=xxx,在windows下无法运行。

如果想在Windows下正确运行,可以修改hpm执行命令的shell

先检查一下hpm的shellPath配置

hpm config

默认情况下windows下的shell采用的是cmd.exe,即:

shellPath = C:\WINDOWS\System32\cmd.exe

如果有安装git,可以通过以下命令设置shell为git的sh

hpm config set shellPath 'C:\Program Files\Git\bin\sh.exe'

或者直接修改~.hpm\hpmrc配置文件的配置

再次运行安装指令就可以了 :smile:
hpm install

:bulb: git的安装路径要根据自己实际安装路径配置

NEEN 2020-09-29 14:07 member

@kobe sun24 问题是否已经解决?

NEEN 2020-11-09 20:40 member

您好,此问题超期一个月无答复暂时关闭,后续有疑问欢迎重新提交Issue。
非常感谢~

Sign in to comment

Assignees
Labels
product-question
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
1
https://git.oschina.net/openharmony/docs.git
git@git.oschina.net:openharmony/docs.git
openharmony
docs
docs

Search