Closed lkonya closed 3 years ago
@lkonya It appears that $nvm_mirror
was not correctly set. Did you happen to set nvm_mirror
to an empty string (inadvertently or not) for some reason?
What does this tell you?
$ la ~/.local/share/
$ echo $nvm_data
$ echo $nvm_mirror
I expect $nvm_mirror
to be empty for you. If it isn't, run this:
command curl --location --silent $nvm_mirror/index.tab | command awk -v OFS=\t '
/v0.9.12/ { exit } # Unsupported
NR > 1 {
print $1 (NR == 2 ? " latest" : $10 != "-" ? " lts/" tolower($10) : "")
}
'
@jorgebucaran I have no idea what changed, but it now works. Sorry for the false alarm. Thank you for your help!
If you encountered with this problem multiply time, maybe it could be mentioned in a FAQ?
This could happen if the user set nvm_mirror
to an empty string. We now initialize nvm_mirror
regardless, so the problem is less likely to reoccur.
Whenever I try to
nvm install
ornvm install v12.20.0
I receive the same error message:MacOS: 11.1
.nvmrc
content: v12.20.0