Nmap for Linux does not work in Windows Subsystem for Linux. You should install the native Windows build of Nmap with winget install nmap