jorgebucaran / nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
https://git.io/nvm.fish
MIT License
2.06k stars 69 forks source link

nvm_default_version not working for setting default #189

Closed metruzanca closed 2 years ago

metruzanca commented 2 years ago

New to fish

So I got set --universal nvm_default_version 12 in my config.fish but it keeps loading LTS (which is the first version that I installed).

What am I doing wrong?

EDIT: vscode was caching something apparently?

salmanhasni commented 1 year ago

@metruzanca how did you resolve it ?

metruzanca commented 1 year ago

@salmanhasni In my case I had installed nvm.fish and just closed my vscode terminal and reopened it. Upon checking the environment variables, I noticed echo $nvm_default_version was not updating, so I thought vscode might be caching something. So I FULLY close all vscode instances (not just the integrated terminal) and then it just started working (and checking the env var, its now updated)