Install Ionic and Cordova
If you dont have already installed Ionic or Cordova then you need to install them first. This command will install cordova and ionic both globally, so you can access them from anywhere in your machine.
npm install -g cordova ionic
Installation could take some time depending on your internet connection.