If you have node / nvm installed in Windows and then run WSL ... you may end up running Node or NVM from Windows.
To fix this ... remove Windows PATH folders from your WSL environment by ...
-
Confirming that you have Windows paths in WSL
$ echo $PATH | tr : '\n'
For Windows build HIGHER than 17713 (safer option)
- Inside WSL ... create a
/etc/wsl.conf
file containing ...