当前位置:   article > 正文

安装鸿蒙diagnose 出现的npm报错问题_error: connect etimedout 104.16.27.34:443

error: connect etimedout 104.16.27.34:443

# 安装过程中报错

看一下报错判断为网络报错

npmnpm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/winston failed, reason: connect ETIMEDOUT 104.16.25.34:443
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!     C:\Users\\AppData\Local\npm-cache\_logs\2024-01-20T19_43_56_784Z-debug-0.log
Error: execute install task failed, component ohpm.zip.
Error: execute 'ohpm install' failed.

解决方案

如果开启更改一下 npm源的仓库 ,就在npm registry access 那一栏会有一个click here 用来检测网络,如果报错,就进去更改仓库源,或者http proxy 代理 填你所使用的代理,一般为 localhost加你所使用代理的端口号

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/295872
推荐阅读
相关标签
  

闽ICP备14008679号