I am unable to setup SPFx Development Environment for my SharePoint Online. I installed 10.24 and 10.20 version of Nodejs then also installed gulp and yeoman. But when I execute yo @microsoft/sharepoint command, the nodejs command prompt throws error as shown in below picture. I tried multiple times to uninstall and reinstall 10.x versions of nodejs but the error is same. I am not able to find any information about this error on google.
TypeError: lookup.flatMap is not a function