Before starting the setup, please use make sure you have proper tools
node -v v14.17.4 npm -v 7.20.3 ionic -v 6.17.0 cordova -v 10.0.0 java --version "1.8.0_201"
Are you new to ionic? Before doing a setup, you can follow this tutorial
Once you’re able to up & run your sample ionic app, you can continue with next step