Most likely this is caused by curl not being able to use certificates for https urls (verify with curl $NVM_NODEJS_ORG_MIRROR
). Instead of using the http url as workaround, it is IMO much better to fix curl.
Assuming you have the ca-certificates
package installed, add the following line to your .bashrc
(source1, source2):
export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt