Is there some way to switch node version only for current terminal? #1018
-
e.g., I want to use Node 20 most of the time, but need to use Node 12 for some specific reasons for some short time, and it would be better to only set Node version for this terminal so that I would not need to switch back and forth 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no native way to do this. It comes down to the difference of using symlinks over shims. There will be a way to do this in Runtime. Even though there is no native way to do this, there is a workaround. The node executable can be called directly. See https://github.com/coreybutler/nvm-windows/wiki/Common-Issues#how-can-i-use-two-different-versions-of-nodejs-at-the-same-time. You can find the Node installation root by running |
Beta Was this translation helpful? Give feedback.
There is no native way to do this. It comes down to the difference of using symlinks over shims. There will be a way to do this in Runtime.
Even though there is no native way to do this, there is a workaround. The node executable can be called directly. See https://github.com/coreybutler/nvm-windows/wiki/Common-Issues#how-can-i-use-two-different-versions-of-nodejs-at-the-same-time. You can find the Node installation root by running
nvm debug
.