I was having this issue lately. Changing to http://nodejs.org/dist/
did not work for me because it redirecrs to https and that results in NA from nvm ls-remote
. So what I've done was:
sudo update-ca-certificates
Then I edited ~/.nvm/nvm.sh
and changed
http://nodejs.org/dist
to https://nodejs.org/dist/
(added https and "/" to avoid redirects) and it worked