You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D:\Code\chartify>wsl --list -v
NAME STATE VERSION
* Ubuntu-20.04 Running 2
docker-desktop-data Running 2
docker-desktop Running 2
I 'm running the same conmmand node --version using wsl and within wsl and get different results. Seem like wsl [cmd] is run in some different context, not default distro. It is not very expected.
Very likely, you've installed nvm as an unstated part of the repro. That command above is not an interactive shell. Therefore, the node found was not the one in your $HOME/.nvm/... path component added by your .bashrc, because your .bashrc was never fired.
If you wanted equivalence, it would look like:
D:\> wsl.exe /bin/bash -ic 'node --version'
Whatever the specifics, this is Linux-behavior. The node that gets executed is the first one in your $PATH. You would get the same behavior with ssh you@somelinuxbox node --version.
I 'm running the same conmmand
node --version
usingwsl
and withinwsl
and get different results. Seem likewsl [cmd]
is run in some different context, not default distro. It is not very expected.The text was updated successfully, but these errors were encountered: