根据 https://github.com/nvm-sh/nvm 安装NVM时(Mac环境),安装完后执行nvm ls-remote返回N/A. (应该列出remote的nodejs版本信息)。

这是我的网络环境使用了proxy,设置代理后解决问题。

export http_proxy=http://proxyhost:port
export https_proxy=http://proxyhost:port

这是我的case, 其他原因可以参考https://stackoverflow.com/questions/26476744/nvm-ls-remote-command-results-in-n-a

 

附录:

安装nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

or Wget:

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

然后关闭terminal重新开一个。(否则找不到nvm这个命令)

 

发表评论