OpenHarmony开源社区
直播中

刘艳

7年用户 2352经验值
私信 关注
[问答]

搭建鸿蒙系统Windows的环境,安装hpm提示失败怎么解决

系统win10,网络正常,执行命令“npm install -g @ohos/hpm-cli”,报错如下:
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to  failed, reason: getaddrinfo ENOTFOUND proxyserver
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR!     D:nodenode_cache_logs2020-12-17T15_17_52_948Z-debug.log


回帖(2)

王桂兰

2022-4-1 11:19:21
系统win10,网络正常,执行命令“npm install -g @ohos/hpm-cli”,报错如下:
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to  failed, reason: getaddrinfo ENOTFOUND proxyserver
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR!     D:
ode
ode_cache_logs2020-12-17T15_17_52_948Z-debug.log


举报

王磊

2022-4-1 11:21:23

举报

更多回帖

发帖
×
20
完善资料,
赚取积分