Failed to clone nvm repo. Please report this!

Linux安装nvm报错,连接GitHub超时 …

root@VM-4-9-debian:~/nvm-0.39.7# ./install.sh
=> Downloading nvm from git to '/root/.nvm'
=> Cloning into '/root/.nvm'...
fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Failed to connect to github.com port 443 af
ter 129382 ms: Couldn't connect to server
Failed to clone nvm repo. Please report this!
  • 直接换 Gitee
git clone https://gitee.com/mirrors/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
Cloning into '/root/.nvm'...
remote: Enumerating objects: 9314, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 9314 (delta 0), reused 0 (delta 0), pack-reused 9311
Receiving objects: 100% (9314/9314), 2.85 MiB | 1.72 MiB/s, done.
Resolving deltas: 100% (6091/6091), done.
Note: switching to 'v0.39.7'.
  • 配置环境变量

编辑.bashrc

# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
作者

江北饮马、江南折花

发布于

2024-01-23

更新于

2024-02-03

许可协议

评论