Closed benjick closed 2 years ago
@benjick Thanks. We read it but failed to print it. Should be good now.
The other issue you are having is that nvm.fish wants you to install the version first, then run nvm use
to switch to it.
@jorgebucaran hey, thanks for the quick reply/commit 🙏 seeing another issue now though
.nvmrc
is utf8 with CRLF
nvm -v
nvm, version 2.2.7
@benjick Perhaps a Fish issue? We just use read v <$file
to read the version into a variable.
Can you run the following and make sure you get the expected result?
echo 16 > .nvmrc
read v <.nvmrc
echo $v
echo 16 > .nvmrc
read v <.nvmrc
echo $v
16
And what happens if you run nvm install
or nvm use
with that .nvmrc
?
You can help me debug this by adding some logging after we read the version into $v
. Are we picking up the version or not? As a Fish script, I don't usually have to worry about file encoding or control codes, so this intrigues me.
Hello
I'm using
nvm, version 2.2.6
and it seems it can't pick up my.nvmrc
. Not really sure what I should do. It works fine if I specify the version but I would prefer it to adhere to the rc file.