I'm using the new WLS2 on Windows 10 Home. I noticed that, when I ran "npm", the "npm" from my Windows program files was executed instead of the Linux version.
When I tried to execute cmd.exe or notepad.exe from WSL2, I noticed those also work!
How is this possible? How is WSL2 able to run Windows executables?
Additionally, how can I force WSL2 to prioritize the Linux executables over the Windows ones in cases where they have the same names?