Before starting the setup, please use make sure you have proper tools
node -v v12.8.1 npm -v 6.11.3 ionic -v 5.2.5 cordova -v 9.0.0 java --version "1.8.0_171"
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