zsh-nvm icon indicating copy to clipboard operation
zsh-nvm copied to clipboard

nvm dont use default version in new terminals - VScode terminal

Open luizwhite opened this issue 4 years ago • 3 comments

Hi! I don't understand too well the zshrc config file, or PATH settings, so be patient with me :) I just want to know why VScode dont use default version in new terminals

I use WSL2 on Windows, and its extension for VScode

I checked a lot of solutions, including:

  • node version installed before nvm -> no
  • i tried nvm alias default stable and nvm alias default node, and it really updates my nvm, but dont change the version in new sessions
  • i tried nvm deactivate

After that, I realized that my "Windows Terminal" (the new one) remembers the default node version in my WSL distro, but my VScode terminal dont How is that possible?

Can anyone help me with this? I dont really even know how to start looking for this problem..

(sry my bad english)

luizwhite avatar Oct 13 '20 15:10 luizwhite

You may close this, after reboot, the vscode terminal started to persist the default node version

luizwhite avatar Oct 14 '20 18:10 luizwhite

not only VSCode terminal, also in iterm2

tjx666 avatar Oct 19 '20 06:10 tjx666

I am getting this problem. I am loading with plugins=(git zsh-autosuggestions zsh-nvm) in my .zshrc file, and my new window panes in tmux, and new tabs in iterm2, always default to node 14, while I want node 16. I have tried all sorts of combinations like nvm use default 16. Nothing works.

MagnusBrzenk avatar Nov 23 '21 16:11 MagnusBrzenk