Running nvm use
with an .nvmrc
with node
in it should use the latest version of node
I see this instead
> nvm use
.0.0
node v.0.0 (64-bit) is not installed
.nvmrc
contents
run nvm use
I tried to throw in a standard version into the .nvmrc
like 10.9.0
and it still has the same error, so now I'm wondering if this is due to my project directory containing a space in it... hmm.
.nvmrc
is not supported. That's an nvm (for Linux) convention. NVM4W is not a mirror of nvm and has no intention of doing so. You can see the different use cases handled by each VM at https://github.com/nodejs/version-management/issues/4.
FYI, I created a workaround for this functionality by using the following commands in powershell:
type .\.nvmrc | %{$_ -replace "v",""} | %{nvm install $_}
type .\.nvmrc | %{$_ -replace "v",""} | %{nvm use $_}
Most helpful comment
FYI, I created a workaround for this functionality by using the following commands in powershell:
type .\.nvmrc | %{$_ -replace "v",""} | %{nvm install $_}
type .\.nvmrc | %{$_ -replace "v",""} | %{nvm use $_}