Firstly, introduce my device and environment: macOS and shadowsocks proxy.
I take steps to fix it. nvm ls-remote command results in "N/A"
I try every method on the internet and i find one method is in effect for me.
vim ~/.curlrc
and then add some sentences like:
proxy="http:<proxy-password>@<proxy-url>:<proxy-port>"proxy="socks5:<proxy-password>@<proxy-url>:<proxy-port>"// if you have username, you can do thisproxy="http:<proxy-username>:<proxy-password>@<proxy-url>:<proxy-port>"// it's my example, you need find your url and port, here password is faked.proxy="socks5://6Bn23U5ceOMS4g@127.0.0.1:1080"proxy="http://6Bn23U5ceOMS4g@127.0.0.1:1081"
finally, source ~/.curlrc
congrats~