I am trying to install node v8.16.1 using nvm. I installed nvm using curl -k -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm --version gave me 0.35.3 as expected.
But when I did nvm install 8.16.1 I got Version '8.16.1' not found - try nvm ls-remote to browse available versions.
nvm ls-remote gave result as N/A.
I have tried the following solutions:
- Adding this to ~/.bashrc
export NVM_NODEJS_ORG_MIRROR=http://nodejs.org/dist - Adding this to ~/.bashrc instead of above;
export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist - Adding this to ~/.bashrc
export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt - sudo update-ca-certificates
But none have worked. I have been trying for hours. Please suggest some solutions.