当前位置:   article > 正文

【亲测解决】nvm安装报错Failed to connect to github.com port 443 after 130578 ms: Connection timed out Failed

【亲测解决】nvm安装报错Failed to connect to github.com port 443 after 130578 ms: Connection timed out Failed

微信公众号:leetcode_algos_life,代码随想随记
小红书:412408155
CSDN:https://blog.csdn.net/woai8339?type=blog ,代码随想随记
GitHub: https://github.com/riverind
抖音【暂未开始,计划开始】:tian72530,代码随想随记
知乎【暂未开始,计划开始】:happy001

问题

安装nvm直接采用

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
  • 1

报错,报错信息如下:

fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Failed to connect to github.com port 443 after 130578 ms: Connection timed out
Failed to clone nvm repo. Please report this!
  • 1
  • 2

解决方案

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/646447
推荐阅读
相关标签
  

闽ICP备14008679号