I have nvm for Windows installed and when I do a whereis nvm when logged into my Pengwin Linux distro via WSL2 it shows it's using the binary on the Windows filesystem mount at /mnt/c/Users/seefe/AppData/Roaming/nvm/nvm.exe. This is despite also going through the Linux installation procedure for nvm, which I assumed would hide the Windows version.
It's the same with gatsby-cli. The problem is when in Linux Land, running nvm and gatsby is a chore because the response time for commands across file systems is too slow. What's the WSL environment strategy for ensuring any packages I install via npm when in Linux are installing and using the packages specifically on the Linux filesystem?