环境
MacOS 10.12
问题:
在 Mac 上下载安装 nvm,输入下方命令,出现 Operation timed out 报错。
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
报错
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
-
报错如下图:
image.png
解决
- 换一种下载方式,重新安装
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
-
安装成功,如下图:
image.png
注意
- 安装完毕后,需要 【配置全局环境变量】,详情参考文章:https://www.cnblogs.com/respect2017/p/7227191.html。